Skip to content
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

Merged
merged 2 commits into from
Mar 7, 2020

Conversation

jjohnson-arm
Copy link
Contributor

  • error/warn when missing/unused graph inputs

* error/warn when missing/unused graph inputs
@jjohnson-arm
Copy link
Contributor Author

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:]
Copy link
Member

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?

Copy link
Contributor Author

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().

@masahi
Copy link
Member

masahi commented Mar 5, 2020

Let's wait until the github bug is fixed

@masahi masahi self-assigned this Mar 6, 2020
@masahi masahi merged commit de34649 into apache:master Mar 7, 2020
@masahi
Copy link
Member

masahi commented Mar 7, 2020

thanks @jjohnson-arm

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Apr 16, 2020
* [Frontend][Torch] Check graph inputs match expected

* error/warn when missing/unused graph inputs

* Change to use get_graph_input_names
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Apr 17, 2020
* [Frontend][Torch] Check graph inputs match expected

* error/warn when missing/unused graph inputs

* Change to use get_graph_input_names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants