View source on GitHub |
Increment a beam.metrics.Metrics.counter
without boilerplate.
tfds.beam.inc_counter(
name: str, value: int = 1, *, namespace: str = 'tfds'
) -> None
tfds.beam.inc_counter('my_metric')
Is a small alias for:
beam.metrics.Metrics.counter(namespace, name).inc(value)
Args | |
---|---|
name
|
The metrics name |
value
|
Increment (default to 1) |
namespace
|
Metrics namespace (default to tfds )
|