ray.util.metrics.Counter.inc
ray.util.metrics.Counter.inc#
- Counter.inc(value: Union[int, float] = 1.0, tags: Optional[Dict[str, str]] = None)[source]#
Increment the counter by
value(defaults to 1).Tags passed in will take precedence over the metric’s default tags.
- Parameters
value (int, float) – Value to increment the counter by (default=1).
tags (Dict[str, str]) – Tags to set or override for this counter.