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

Method _check_summary

axlearn/audio/decoder_asr_test.py:470–475  ·  view source on GitHub ↗
(
        self, summary_collection: dict[str, Any], name: str, value: Union[Tensor, WeightedSummary]
    )

Source from the content-addressed store, hash-verified

468 assert_allclose(ref_per_example_loss, per_example_loss * per_example_weight)
469
470 def _check_summary(
471 self, summary_collection: dict[str, Any], name: str, value: Union[Tensor, WeightedSummary]
472 ):
473 self.assertIn(name, summary_collection)
474 msg = f"mismatch in {name}: {summary_collection[name]} vs {value}"
475 self.assertEqual(summary_collection[name], value, msg)
476
477 @set_threefry_partitionable(False) # TODO(yongqiang): update for threefry_partitionable True
478 def test_forward_summary(self):

Callers 1

test_forward_summaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected