MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / test_api_examples

Function test_api_examples

tools/Polygraphy/tests/test_examples.py:218–224  ·  view source on GitHub ↗
(example, sandboxed_install_run)

Source from the content-addressed store, hash-verified

216@pytest.mark.parametrize("example", API_EXAMPLES, ids=lambda case: str(case))
217@pytest.mark.script_launch_mode("subprocess")
218def test_api_examples(example, sandboxed_install_run):
219 if mod.version(trt.__version__) < mod.version("8.0") and (example.path.endswith("07_tensorrt_and_dynamic_shapes")):
220 pytest.skip("Not intended for older versions of TRT")
221
222 with example as commands:
223 for command in commands:
224 example.run(command, sandboxed_install_run)
225
226
227CLI_EXAMPLES = [

Callers

nothing calls this directly

Calls 2

skipMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected