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

Method load_state_dict

pointersect/inference/structures.py:260–267  ·  view source on GitHub ↗

Load the state dictionary.

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

Source from the content-addressed store, hash-verified

258 return to_save
259
260 def load_state_dict(
261 self,
262 state_dict: T.Dict[str, T.Any],
263 ):
264 """Load the state dictionary."""
265 for name in self.attr_names:
266 setattr(self, name, state_dict.get(name, None))
267 setattr(self, 'included_point_at_inf', state_dict.get('included_point_at_inf', False))
268
269 def extract_valid_attr(self, arr: torch.Tensor, bidx: int) -> T.Union[torch.Tensor, None]:
270 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected