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

ValueError: __len__() should return >= 0 #876

Open
angelicawangmasteruse opened this issue Aug 6, 2023 · 1 comment
Open

ValueError: __len__() should return >= 0 #876

angelicawangmasteruse opened this issue Aug 6, 2023 · 1 comment

Comments

@angelicawangmasteruse
Copy link

angelicawangmasteruse commented Aug 6, 2023

Plet let me know how this issue can be fixed, thank you
[TRT] [E] 9: [graphShapeAnalyzer.cpp::addVolumeCheck::877] Error Code 9: Internal Error ((Unnamed Layer* 135) [Slice]_output: dimension 1 never exceeds -1)
out = self.encoder1(torch.cat([x1, x2], dim=1))
File "/home/user/anaconda3/lib/python3.10/site-packages/torch2trt-0.4.0-py3.10.egg/torch2trt/torch2trt.py", line 310, in wrapper
converter"converter"
File "/home/user/anaconda3/lib/python3.10/site-packages/torch2trt-0.4.0-py3.10.egg/torch2trt/converters/cat.py", line 16, in convert_cat
trt_inputs = broadcast_trt_tensors(ctx.network, trt_inputs, len(output.shape))
File "/home/user/anaconda3/lib/python3.10/site-packages/torch2trt-0.4.0-py3.10.egg/torch2trt/torch2trt.py", line 194, in broadcast_trt_tensors
if len(t.shape) < broadcast_ndim:
ValueError: len() should return >= 0

@farzanehnakhaee70
Copy link

Hi,
Is there any update for this issue?

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

2 participants