MCPcopy Index your code
hub / github.com/tensorflow/models / OutputRecorderAction

Class OutputRecorderAction

orbit/controller_test.py:795–802  ·  view source on GitHub ↗

Simple `Action` that just saves the outputs passed to `__call__`.

Source from the content-addressed store, hash-verified

793 checkpoint_interval=10)
794
795 class OutputRecorderAction:
796 """Simple `Action` that just saves the outputs passed to `__call__`."""
797
798 def __init__(self):
799 self.outputs = []
800
801 def __call__(self, output):
802 self.outputs.append(output)
803
804 train_output_recorder = OutputRecorderAction()
805 eval_output_recorder = OutputRecorderAction()

Callers 1

test_actionsMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_actionsMethod · 0.68