MCPcopy Index your code
hub / github.com/apple/ml-pointersect / load_state_dict

Method load_state_dict

pointersect/inference/structures.py:1702–1708  ·  view source on GitHub ↗

Load the state dictionary.

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

Source from the content-addressed store, hash-verified

1700 return to_save
1701
1702 def load_state_dict(
1703 self,
1704 state_dict: T.Dict[str, T.Any],
1705 ):
1706 """Load the state dictionary."""
1707 for name in self.attr_names:
1708 setattr(self, name, state_dict.get(name, None))
1709
1710 def load_json(
1711 self,

Callers 1

__init__Method · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected