MCPcopy Index your code
hub / github.com/OpenPPL/ppq / Example_Fp32.py

File Example_Fp32.py

ppq/samples/TensorRT/Example_Fp32.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1MODEL = 'model.onnx'
2INPUT_SHAPE = [1, 3, 224, 224]
3SAMPLES = [torch.rand(size=[INPUT_SHAPE]) for _ in range(256)] # rewirte this to use real data.
4

Callers

nothing calls this directly

Calls 6

EngineBuilderClass · 0.90
convert_any_to_numpyFunction · 0.85
create_networkMethod · 0.45
create_engineMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected