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

Method add_summary

axlearn/common/module.py:1114–1121  ·  view source on GitHub ↗

Adds the named value to `OutputCollection.summaries`. Args: name: The name of the item to add. value: The value to add.

(self, name: str, value: Union[Summable, Tensor, Summary])

Source from the content-addressed store, hash-verified

1112 def is_training(self) -> bool:
1113 return self.get_invocation_context().is_training
1114
1115 @property
1116 def prng_key(self) -> Tensor:
1117 return self.get_invocation_context().prng_key
1118
1119 @property
1120 def state(self):
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`.

Callers 15

forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
_metricsMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
_metricsMethod · 0.45

Calls 1

Tested by 15

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