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

Method state_dict

pointersect/inference/structures.py:1298–1303  ·  view source on GitHub ↗

Returns a dictionary that can be saved or load.

(self)

Source from the content-addressed store, hash-verified

1296 return self
1297
1298 def state_dict(self) -> T.Dict[str, T.Any]:
1299 """Returns a dictionary that can be saved or load."""
1300 to_save = dict()
1301 for name in self.attr_names:
1302 to_save[name] = getattr(self, name, None)
1303 return to_save
1304
1305 def load_state_dict(
1306 self,

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected