We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c921c commit 907a017Copy full SHA for 907a017
onnx_diagnostic/reference/ort_evaluator.py
@@ -83,7 +83,7 @@ def to(self, tensor_like) -> "OnnxList":
83
84
def clone(self) -> "OnnxList":
85
"Clone (torch)."
86
- return OnnxList([t.clone() for t in self])
+ return OnnxList([t.clone() for t in self]) if len(self) > 0 else OnnxList(self.itype)
87
88
89
class OnnxruntimeEvaluator:
0 commit comments