-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix bug with LegalizeLayoutTranform which added duplicate ops #81
Fix bug with LegalizeLayoutTranform which added duplicate ops #81
Conversation
python/tvm/relay/tensorrt.py
Outdated
@@ -186,6 +185,7 @@ def EnableTrt(mod, params=None, trt_version=None): | |||
mod = relay.transform.RemoveUnusedFunctions()(mod) | |||
mod = relay.transform.InferType()(mod) | |||
mod = relay.transform.ConvertLayout('NCHW')(mod) | |||
print(mod['main']) |
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.
Let's remove the print?
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.
Oops, fixed.
9bfc36d
to
994a73f
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.
LGTM
LegalizeLayoutTransform visitor was not replacing layout_transform with transpose properly.