Skip to content

Commit 75afad0

Browse files
committed
fix path at test_onnx_trt_export
1 parent 716b46f commit 75afad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bundle/test_bundle_trt_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_trt_export(self, convert_precision, input_shape, dynamic_batch):
108108
has_onnx and has_torchtrt and has_tensorrt, "Onnx and TensorRT are required for onnx-trt conversion!"
109109
)
110110
def test_onnx_trt_export(self, convert_precision, input_shape, dynamic_batch):
111-
tests_dir = Path(__file__).resolve().parent
111+
tests_dir = Path(__file__).resolve().parents[1]
112112
meta_file = os.path.join(tests_dir, "testing_data", "metadata.json")
113113
config_file = os.path.join(tests_dir, "testing_data", "inference.json")
114114
with tempfile.TemporaryDirectory() as tempdir:

0 commit comments

Comments
 (0)