Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AttributeError when using torch.nn.functional.pad #936

Open
clementabary opened this issue Jun 19, 2024 · 0 comments
Open

AttributeError when using torch.nn.functional.pad #936

clementabary opened this issue Jun 19, 2024 · 0 comments

Comments

@clementabary
Copy link

Hi all, when I run conversion of the following operation:

x_padded = torch.nn.functional.pad(x, (0, 0, pad_left, pad_right))

I get the error below:

AttributeError: 'tensorrt_bindings.tensorrt.INetworkDefinition' object has no attribute 'add_padding'. Did you mean: 'add_padding_nd'?

Do you know any way to circumvent this issue? Thanks in advance 🙏

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant