MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / ort_validate

Function ort_validate

tests/test_onnx/utils.py:32–85  ·  view source on GitHub ↗

Validate the output of the onnxruntime backend is the same as the output generated by torch. Args: model (nn.Module | function): the function of model or model to be verified. feats (tuple(list(torch.Tensor)) | list(torch.Tensor) | torch.Tensor): the

(model, feats, onnx_io='tmp.onnx')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 7

forwardMethod · 0.95
WrapFunctionClass · 0.85
get_ort_model_outputFunction · 0.85
convert_result_listFunction · 0.85
cpuMethod · 0.80
numpyMethod · 0.80
detachMethod · 0.80