MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / get_weights

Method get_weights

core/model.py:115–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113 return NetworkOutput(value, value_prefix, actor_logit, state, reward_hidden)
114
115 def get_weights(self):
116 return {k: v.cpu() for k, v in self.state_dict().items()}
117
118 def set_weights(self, weights):
119 self.load_state_dict(weights)

Callers 1

_trainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected