File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments