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

Method load_state_dict

pointersect/inference/structures.py:1129–1135  ·  view source on GitHub ↗

Load the state dictionary.

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

Source from the content-addressed store, hash-verified

1127 return to_save
1128
1129 def load_state_dict(
1130 self,
1131 state_dict: T.Dict[str, T.Any],
1132 ):
1133 """Load the state dictionary."""
1134 for name in ['origins_w', 'directions_w']:
1135 setattr(self, name, state_dict.get(name, None))
1136
1137 def save(
1138 self,

Callers 1

load_state_dictMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected