@@ -822,15 +822,15 @@ class TensorCollection:
822822 return_early : bool = False ,
823823 share_non_tensor : bool = False ,
824824 existsok : bool = True ,
825- robust_key : bool | None = None ,
825+ robust_key : bool | None = True ,
826826 ) -> Self : ...
827827 def make_memmap (
828828 self ,
829829 key : NestedKey ,
830830 shape : torch .Size | torch .Tensor ,
831831 * ,
832832 dtype : torch .dtype | None = None ,
833- robust_key : bool | None = None ,
833+ robust_key : bool | None = True ,
834834 ) -> MemoryMappedTensor : ...
835835 def make_memmap_from_storage (
836836 self ,
@@ -839,15 +839,15 @@ class TensorCollection:
839839 shape : torch .Size | torch .Tensor ,
840840 * ,
841841 dtype : torch .dtype | None = None ,
842- robust_key : bool | None = None ,
842+ robust_key : bool | None = True ,
843843 ) -> MemoryMappedTensor : ...
844844 def make_memmap_from_tensor (
845845 self ,
846846 key : NestedKey ,
847847 tensor : torch .Tensor ,
848848 * ,
849849 copy_data : bool = True ,
850- robust_key : bool | None = None ,
850+ robust_key : bool | None = True ,
851851 ) -> MemoryMappedTensor : ...
852852 def save (
853853 self ,
@@ -857,7 +857,7 @@ class TensorCollection:
857857 num_threads : int = 0 ,
858858 return_early : bool = False ,
859859 share_non_tensor : bool = False ,
860- robust_key : bool | None = None ,
860+ robust_key : bool | None = True ,
861861 ) -> Self : ...
862862 def dumps (
863863 self ,
@@ -867,7 +867,7 @@ class TensorCollection:
867867 num_threads : int = 0 ,
868868 return_early : bool = False ,
869869 share_non_tensor : bool = False ,
870- robust_key : bool | None = None ,
870+ robust_key : bool | None = True ,
871871 ) -> Self : ...
872872 def memmap (
873873 self ,
@@ -878,7 +878,7 @@ class TensorCollection:
878878 return_early : bool = False ,
879879 share_non_tensor : bool = False ,
880880 existsok : bool = True ,
881- robust_key : bool | None = None ,
881+ robust_key : bool | None = True ,
882882 ) -> Self : ...
883883 def memmap_like (
884884 self ,
@@ -889,14 +889,14 @@ class TensorCollection:
889889 num_threads : int = 0 ,
890890 return_early : bool = False ,
891891 share_non_tensor : bool = False ,
892- robust_key : bool | None = None ,
892+ robust_key : bool | None = True ,
893893 ) -> Self : ...
894894 @classmethod
895895 def load (
896- cls , prefix : str | Path , * args , robust_key : bool | None = None , ** kwargs
896+ cls , prefix : str | Path , * args , robust_key : bool | None = True , ** kwargs
897897 ) -> Self : ...
898898 def load_ (
899- self , prefix : str | Path , * args , robust_key : bool | None = None , ** kwargs
899+ self , prefix : str | Path , * args , robust_key : bool | None = True , ** kwargs
900900 ): ...
901901 @classmethod
902902 def load_memmap (
@@ -906,9 +906,9 @@ class TensorCollection:
906906 non_blocking : bool = False ,
907907 * ,
908908 out : TensorCollection | None = None ,
909- robust_key : bool | None = None ,
909+ robust_key : bool | None = True ,
910910 ) -> Self : ...
911- def load_memmap_ (self , prefix : str | Path , robust_key : bool | None = None ): ...
911+ def load_memmap_ (self , prefix : str | Path , robust_key : bool | None = True ): ...
912912 def memmap_refresh_ (self ): ...
913913 def entry_class (self , key : NestedKey ) -> type : ...
914914 def set (
0 commit comments