MCPcopy Create free account
hub / github.com/apple/axlearn / get_state_updates

Method get_state_updates

axlearn/common/module.py:529–530  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

527 """
528 # E.g., optimizer state from a PartitionedGradientTransformation may be a tuple, so we
529 # have to assign it via the parent.
530 parent = self.parent
531 if parent is not None:
532 parent.output_collection.state_updates[self.name] = value
533 self.output_collection = self.output_collection._replace(state_updates=value)

Callers 3

transform_updateMethod · 0.80
test_set_state_updateMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_set_state_updateMethod · 0.64