MCPcopy Create free account
hub / github.com/3DAnimals/3DAnimals / load_optimizer_state

Method load_optimizer_state

model/models/Fauna.py:57–59  ·  view source on GitHub ↗
(self, cp)

Source from the content-addressed store, hash-verified

55 if disc_unexpected: print(f"Unexpected keys in netBase:\n{disc_unexpected}")
56
57 def load_optimizer_state(self, cp):
58 super().load_optimizer_state(cp)
59 self.optimizerDisc.load_state_dict(cp["optimizerDisc"])
60
61 def get_model_state(self):
62 state = super().get_model_state()

Callers 1

load_checkpointMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected