when I am running model_trt = torch2trt.torch2trt(model, [data]), it shows me the following errors:
Traceback (most recent call last):
File "demo_1.py", line 69, in
model_trt = torch2trt.torch2trt(net.net, [data], fp16_mode=True, max_workspace_size=1<<25)
File "/home/aegis/.virtualenvs/py3cv4/lib/python3.6/site-packages/torch2trt-0.1.0-py3.6-linux-aarch64.egg/torch2trt/torch2trt.py", line 540, in torch2trt
ctx.mark_outputs(outputs, output_names)
File "/home/aegis/.virtualenvs/py3cv4/lib/python3.6/site-packages/torch2trt-0.1.0-py3.6-linux-aarch64.egg/torch2trt/torch2trt.py", line 406, in mark_outputs
trt_tensor = torch_output._trt
AttributeError: 'list' object has no attribute '_trt'
In my model, all used layers are already defined in the torch2trt.converters.activation. So the reason is different from the error 'Tensor' object has no attribute '_trt'. I would appreciate it if there is any idea.
Hello I want to use torch2trt to convert a mobilenet according to https://github.com/Daniil-Osokin/lightweight-human-pose-estimation-3d-demo.pytorch
when I am running model_trt = torch2trt.torch2trt(model, [data]), it shows me the following errors:
In my model, all used layers are already defined in the torch2trt.converters.activation. So the reason is different from the error 'Tensor' object has no attribute '_trt'. I would appreciate it if there is any idea.
PS: my model looks like the following:
Thanks a lot for the help!