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 2020/12/10 22:29:11 UTC
[GitHub] [tvm] trevor-m opened a new pull request #7088: [Frontend][Pytorch] Handle case where output of model is python list
trevor-m opened a new pull request #7088:
URL: https://github.com/apache/tvm/pull/7088
`prim::ListConstruct` converter can make a regular python list when the list is not dynamic:
https://github.com/apache/tvm/blob/main/python/tvm/relay/frontend/pytorch.py#L2436-L2439
If that python list happens to be the output of the whole model, an error would occur when the list is passed to `_analysis.free_vars` because it only accepts Expr. This PR puts the list in a tuple to solve that.
----------------------------------------------------------------
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 #7088: [Frontend][Pytorch] Handle case where output of model is python list
Posted by GitBox <gi...@apache.org>.
masahi commented on pull request #7088:
URL: https://github.com/apache/tvm/pull/7088#issuecomment-742947287
thanks @trevor-m @TusharKanekiDey
----------------------------------------------------------------
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 #7088: [Frontend][Pytorch] Handle case where output of model is python list
Posted by GitBox <gi...@apache.org>.
masahi merged pull request #7088:
URL: https://github.com/apache/tvm/pull/7088
----------------------------------------------------------------
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