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/05/04 19:04:56 UTC

[GitHub] [tvm] masahi commented on issue #7971: Runtime error when tracing maskrcnn model: Only tensors, lists, tuples of tensors, or dictionary of tensors can be output from traced functions

masahi commented on issue #7971:
URL: https://github.com/apache/tvm/issues/7971#issuecomment-832174435


   You need to use `model = TraceWrapper(model_func(pretrained=True))`. The output from pytorch maskrcnn model needs to be a tensor or a tuple of tensors. `TraceWrapper` makes sure the output is in a format pytorch tracing supports.


-- 
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