-
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
[Relay][Frontend] Preserve Pytorch Span Names #16171
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.
Looks generally good!
Some minor nits
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 👍
source_map=None, | ||
op_type_dict=None, | ||
use_parser_friendly_name=False, | ||
preserve_pytorch_scopes=False, |
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.
I think it can be set to True by default, can be done as a follow up.
In accordance with discussion and RFC at https://discuss.tvm.apache.org/t/frontend-preserving-pytorch-spans/16044, we provide the ability to preserve the raw Pytorch scope name like "bert.encoder.layer.11.output.dense" as opposed to getting renamed to an arbitrary "internal" TVM name like "aten::conv2d_1, aten::dense" etc.