-
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
[ShapeFunc] Handle weights in shape func #6912
Conversation
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. @icemelon9 PTAL
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. just a minor comment.
src/relay/backend/compile_engine.cc
Outdated
"shape_const", topi::kBroadcast); | ||
scalars_.push_back(value); | ||
return {value}; | ||
} else { |
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.
No need for else since you already return.
Thanks @zhiics @icemelon9 This is merged. |
* [ShapeFunc] Handle weights in shape func
* [ShapeFunc] Handle weights in shape func * Comments
* [ShapeFunc] Handle weights in shape func * Comments
* [ShapeFunc] Handle weights in shape func * Comments
When compiling a dynamic model with TRT, the primitive function has constants already bound in the graph. TVM codegen typically lifts those into variables in ANF pass, so we never see this problem in TVM codegen.
@icemelon9 @zhiics @codeislife99 @rohanmukh @trevor-m