Skip to content

🐛 [Bug] Encountered bug when compiling model with acc_ops conv converter #1885

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

Closed
gs-olive opened this issue May 4, 2023 · 0 comments · Fixed by #1886
Closed

🐛 [Bug] Encountered bug when compiling model with acc_ops conv converter #1885

gs-olive opened this issue May 4, 2023 · 0 comments · Fixed by #1886
Assignees
Labels
bug Something isn't working

Comments

@gs-olive
Copy link
Collaborator

gs-olive commented May 4, 2023

Bug Description

Encountered the following error when compiling model with acc_ops.conv2d converter:

  File "~/TensorRT/py/torch_tensorrt/fx/fx2trt.py", line 328, in call_function
    return converter(self.network, target, args, kwargs, self._cur_node_name)
  File "~/TensorRT/py/torch_tensorrt/fx/converters/aten_ops_converters.py", line 136, in aten_ops_convolution
    return acc_ops_converters.acc_ops_convnd(
  File "~/TensorRT/py/torch_tensorrt/fx/converters/acc_ops_converters.py", line 226, in acc_ops_convnd
    raise RuntimeError(
RuntimeError: linear convolution_79 has weight of type <class 'tensorrt.tensorrt.ITensor'>, Expect Optional[Tenosr]

To Reproduce

Steps to reproduce the behavior:

  1. Compile Resnet18 with torch_tensorrt.dynamo.torch_compile

Expected behavior

Model should not throw errors due to acc_ops.conv2d layer.

Environment

  • Torch-TensorRT Version (e.g. 1.0.0): 25db257
  • PyTorch Version (e.g. 1.0): 2.1.0.dev20230419+cu117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant