-
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
[Frontend][Torch] Check graph inputs match expected #4992
Conversation
jjohnson-arm
commented
Mar 5, 2020
- error/warn when missing/unused graph inputs
* error/warn when missing/unused graph inputs
python/tvm/relay/frontend/pytorch.py
Outdated
def _check_input_names(graph, input_shapes): | ||
""" Check the graph inputs match the inputs """ | ||
# remove self at the 0th arg | ||
ir_inputs = _get_input_names(graph)[1:] |
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.
Passing script_module and using _get_graph_input_names would be simpler?
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.
Fair enough - though I was just trying to avoid the extra graph.copy().
Let's wait until the github bug is fixed |
thanks @jjohnson-arm |
* [Frontend][Torch] Check graph inputs match expected * error/warn when missing/unused graph inputs * Change to use get_graph_input_names
* [Frontend][Torch] Check graph inputs match expected * error/warn when missing/unused graph inputs * Change to use get_graph_input_names