Skip to content

Commit 907a017

Browse files
committed
fix
1 parent 86c921c commit 907a017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnx_diagnostic/reference/ort_evaluator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def to(self, tensor_like) -> "OnnxList":
8383

8484
def clone(self) -> "OnnxList":
8585
"Clone (torch)."
86-
return OnnxList([t.clone() for t in self])
86+
return OnnxList([t.clone() for t in self]) if len(self) > 0 else OnnxList(self.itype)
8787

8888

8989
class OnnxruntimeEvaluator:

0 commit comments

Comments
 (0)