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

Function convert_result_list

tests/test_onnx/utils.py:118–137  ·  view source on GitHub ↗

Convert the torch forward outputs containing tuple or list to a list only containing torch.Tensor. Args: output (list(Tensor) | tuple(list(Tensor) | ...): the outputs in torch env, maybe containing nested structures such as list or tuple. Returns: list(T

(outputs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ort_validateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected