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

Method state_dict

pointersect/inference/structures.py:1122–1127  ·  view source on GitHub ↗

Returns a dictionary that can be saved or load.

(self)

Source from the content-addressed store, hash-verified

1120 return self.origins_w.device
1121
1122 def state_dict(self) -> T.Dict[str, T.Any]:
1123 """Returns a dictionary that can be saved or load."""
1124 to_save = dict()
1125 for name in ['origins_w', 'directions_w']:
1126 to_save[name] = getattr(self, name, None)
1127 return to_save
1128
1129 def load_state_dict(
1130 self,

Callers 2

saveMethod · 0.95
state_dictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected