MCPcopy Create free account
hub / github.com/tensorflow/datasets / inc_counter

Method inc_counter

tensorflow_datasets/core/writer.py:524–525  ·  view source on GitHub ↗
(self, name: str, value: int = 1)

Source from the content-addressed store, hash-verified

522 return beam.metrics.Metrics.distribution(namespace, name)
523
524 def inc_counter(self, name: str, value: int = 1) -> None:
525 self._get_counter(name).inc(value)
526
527 def __getstate__(self):
528 return self._original_state

Callers 4

_serialize_exampleMethod · 0.95
_write_final_shardMethod · 0.95
_number_of_shardsMethod · 0.95
_assign_shardMethod · 0.95

Calls 2

_get_counterMethod · 0.95
incMethod · 0.80

Tested by

no test coverage detected