File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -605,10 +605,10 @@ def _safe_serialize(self,val):
605605 torch .save (convert_to_tensor (val ), out , protocol = self .pickle_protocol )
606606 out .seek (0 )
607607 return out .read ()
608-
608+
609609 def _safe_deserialize (self ,val ):
610610 out = BytesIO (val )
611- return torch .load (out ,weights_only = True )
611+ return torch .load (out ,weights_only = True )
612612
613613 def _fill_cache_start_reader (self , show_progress = True ):
614614 """
Original file line number Diff line number Diff line change 3030import torch
3131from torch .utils .data ._utils .collate import default_collate
3232
33- from monai import config
3433from monai .config .type_definitions import NdarrayOrTensor , NdarrayTensor , PathLike
3534from monai .data .meta_obj import MetaObj
3635from monai .utils import (
You can’t perform that action at this time.
0 commit comments