MCPcopy Create free account
hub / github.com/tensorflow/lingvo / CompareToGoldenSingleFloat

Function CompareToGoldenSingleFloat

lingvo/core/test_utils.py:434–460  ·  view source on GitHub ↗

Compare golden value with real value. When running the bazel tests with FLAGS.update_goldens to be True, this function automatically updates the golden value in the test file if there is a mismatch and the calling site of CompareToGoldenSingleFloat is a 1-liner. E.g. Code:: test_utils.

(testobj, v1, v2, *args, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

_ReplaceOneLineInFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…