MCPcopy Create free account
hub / github.com/apple/ml-pointersect / load_state_dict

Method load_state_dict

pointersect/inference/structures.py:1305–1311  ·  view source on GitHub ↗

Load the state dictionary.

(
            self,
            state_dict: T.Dict[str, T.Any],
    )

Source from the content-addressed store, hash-verified

1303 return to_save
1304
1305 def load_state_dict(
1306 self,
1307 state_dict: T.Dict[str, T.Any],
1308 ):
1309 """Load the state dictionary."""
1310 for name in self.attr_names:
1311 setattr(self, name, state_dict.get(name, None))
1312
1313 @staticmethod
1314 def cat(records: T.List['PointersectRecord'], dim: int) -> 'PointersectRecord':

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected