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

Method add_state_update

axlearn/common/module.py:1123–1125  ·  view source on GitHub ↗

Adds a state update to the output collection of the current context.

(self, name: str, value: Tensor)

Source from the content-addressed store, hash-verified

1121 return self.get_invocation_context().state
1122
1123 def add_summary(self, name: str, value: Union[Summable, Tensor, Summary]):
1124 """Adds the named value to `OutputCollection.summaries`.
1125
1126 Args:
1127 name: The name of the item to add.
1128 value: The value to add.

Callers 15

forwardMethod · 0.45
_metricsMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
transform_updateMethod · 0.45
forwardMethod · 0.45
updateMethod · 0.45
forwardMethod · 0.45

Calls 1

Tested by 7

forwardMethod · 0.36
_metricsMethod · 0.36
forwardMethod · 0.36
forwardMethod · 0.36
forwardMethod · 0.36
forwardMethod · 0.36
fnMethod · 0.36