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

Hi, how to solve it with list output? #13

Open
lucasjinreal opened this issue Dec 18, 2020 · 2 comments
Open

Hi, how to solve it with list output? #13

lucasjinreal opened this issue Dec 18, 2020 · 2 comments

Comments

@lucasjinreal
Copy link

I got this error when using list as output:

line 408, in mark_outputs
    trt_tensor = torch_output._trt
AttributeError: 'list' object has no attribute '_trt'
@grimoire
Copy link
Owner

What is the output structure of your model?
The convertor only accept tensor or list of tensors as output. Nested list is not convertable as the final output.

@LeoRainly
Copy link

I modified the output but I still got error
AttributeError: 'Tensor' object has no attribute 'trt'
in this function
def mark_outputs(self, torch_outputs, names=None):
if names is None:
names = ['output
%d' % i for i in range(len(torch_outputs))]
.......
self.network.mark_output(trt_tensor)

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

No branches or pull requests

3 participants