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

Method AddEvalMetric

lingvo/core/base_model.py:1062–1077  ·  view source on GitHub ↗

Adds a metric to the eval metrics. Args: name: A python string. The name of the metric. value: A scalar Tensor. weight: A scalar Tensor. raise_if_already_added: If the metric already exists, raise a ValueError. Raises: ValueError: if `name` is already defined.

(self, name, value, weight, raise_if_already_added=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

_FPropResultMethod · 0.95
_BPropGenTrainOpsMethod · 0.95
_BPropGenTrainOpsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected