You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/03/18 21:41:51 UTC

[GitHub] [tvm] jwfromm opened a new pull request #7699: [Relay][Frontend][ONNX] Raise error when user provides an input not in the onnx graph.

jwfromm opened a new pull request #7699:
URL: https://github.com/apache/tvm/pull/7699


   There was recently some discussion about how the onnx importer should handle being passed a shape dict that contains inputs not found in the onnx graph. Currently, the importer will just ignore these inputs. However, this could lead to user confusion if they make a simple typo and are expecting different behavior than what they get. This PR adds checking for inputs in the shape dict that arent part of the graph and informs the user if it finds any. Overall, this should provide a more clear experience.
   
   I added a test to confirm the behavior works as described and found that one of our onnx tests (test_pad) was actually providing gratuitous input information.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi commented on pull request #7699: [Relay][Frontend][ONNX] Raise error when user provides an input not in the onnx graph.

Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #7699:
URL: https://github.com/apache/tvm/pull/7699#issuecomment-802688302


   Thanks @jwfromm @mbrookhart 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi merged pull request #7699: [Relay][Frontend][ONNX] Raise error when user provides an input not in the onnx graph.

Posted by GitBox <gi...@apache.org>.
masahi merged pull request #7699:
URL: https://github.com/apache/tvm/pull/7699


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org