Skip to content

Commit 6036735

Browse files
committed
update docs
Signed-off-by: Justin Chu <[email protected]>
1 parent ef9b697 commit 6036735

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/onnx_ir/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ def tobytes(self) -> bytes:
10431043
def tofile(self, file) -> None:
10441044
tensor = self._evaluate()
10451045
if hasattr(tensor, "tofile"):
1046-
# Some existing implementation (e.g. PyTorch <2.10) of TensorProtocol
1046+
# Some existing implementation of TensorProtocol
10471047
# may not have tofile() as it was introduced in v0.1.11
10481048
tensor.tofile(file)
10491049
else:

src/onnx_ir/external_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _write_external_data(
211211
data_file.write(b"\0" * (current_offset - file_size))
212212

213213
if hasattr(tensor, "tofile"):
214-
# Some existing implementation (e.g. PyTorch <2.10) of TensorProtocol
214+
# Some existing implementation of TensorProtocol
215215
# may not have tofile() as it was introduced in v0.1.11
216216
tensor.tofile(data_file)
217217
else:

0 commit comments

Comments
 (0)