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

Method state_dict

pointersect/inference/structures.py:1695–1700  ·  view source on GitHub ↗

Returns a dictionary that can be saved or load.

(self)

Source from the content-addressed store, hash-verified

1693 return camera
1694
1695 def state_dict(self) -> T.Dict[str, T.Any]:
1696 """Returns a dictionary that can be saved or load."""
1697 to_save = dict()
1698 for name in self.attr_names:
1699 to_save[name] = getattr(self, name, None)
1700 return to_save
1701
1702 def load_state_dict(
1703 self,

Callers 1

saveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected