Open owoshch opened 3 years ago
Hi owoshch,
Thanks for reaching out!
The command, from the root of the project is
python3 -m torch2trt.test --name=converters.Conv2d.test_Conv2d_basic
You can use any regex to match the package.module.function name with the --name
parameter. For example,
python3 -m torch2trt.test --name=Conv2d_basic
Would work as well. Please let me know if this helps or you run into any issues.
Best, John
I'm implementing my own converter and I'm trying to figure out the general framework for testing converters in this repository. For example, I'm trying to test
from torch2trt import *
File "/workspace/repositories/torch2trt/torch2trt/torch2trt.py", line 9, in
from .calibration import (
ImportError: attempted relative import with no known parent package
Conv2d
converter via executing the commandtorch2trt/torch2trt# python test.py --name converters.Conv2d.test_Conv2d_basic
I'm getting this error: Traceback (most recent call last): File "test.py", line 1, inCould you please assist me with fixing this issue? Thank you!