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

Support list and pack_padded_sequence as input #342

Open
biggytruck opened this issue Jun 16, 2020 · 4 comments
Open

Support list and pack_padded_sequence as input #342

biggytruck opened this issue Jun 16, 2020 · 4 comments

Comments

@biggytruck
Copy link

Currently my PyTorch model has the following inputs:

  • A tensor with size (B, 1, 300) where B is the batch size
  • A list of pack_padded_sequence objects, each of which has size (T, B, 300) where T is the maximum length among the batch and B is the batch size.

When I tried to convert the model from Pytorch to TensorRT, I got the error:
AttributeError: 'list' object has no attribute 'clone'

I also tried to retrieve each pack_padded_sequence object from the list and pass them one by one into the model, but got:
AttributeError: 'list' object has no attribute 'clone'.

Is it possible to support list or pack_padded_sequence as model input?

@cognitiveRobot
Copy link

Hello @biggytruck did you find any solution to this problem? I am having same issue. Thanks.

@shatealaboxiaowang
Copy link

same issue +1

@pramodhrachuri
Copy link

+1

1 similar comment
@Quinn1876
Copy link

+1

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

5 participants