-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Relax] Support input_axis_separator
to allow 2D to 1D conversion
#17115
Conversation
Introduce input_axis_separator in relax.transform_layout op to allow conversion of 2D buffers to 1D buffers. The conversion from 2D->1D is handled while lowering of transform_layout operator. Also introducing support for input_axis_separator in AlterOpImpl pass.
a7018ad
to
778557e
Compare
778557e
to
28a4bb6
Compare
input_axis_separator
to allow 2D to 1D conversion
cc: @Lunderberg , @tqchen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Lunderberg for your comments. I've addressed them in a new commit.
03a6ad4
to
13ddd8c
Compare
13ddd8c
to
fb63b4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the changes, and it looks good!
@tvm-bot rerun |
Thanks @abhikran-quic @Lunderberg |
Thank you @Lunderberg, @quic-sanirudh ! |
input_axis_separator
inrelax.transform_layout
op for 2D input buffer to allow conversion of 2D buffers to 1D buffers. The conversion from 2D->1D is handled while lowering oftransform_layout
operator.axis_separator
, theinput_axis_separator
helps in identifying the buffers with 2 dimensions especially when the conversion is needed to 1D operation.input_axis_separator
inAlterOpImpl
pass.