MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IntGaugeCell

Class IntGaugeCell

tensorflow/python/eager/monitoring.py:190–211  ·  view source on GitHub ↗

A single integer value stored in an `IntGauge`.

Source from the content-addressed store, hash-verified

188
189
190class IntGaugeCell(object):
191 """A single integer value stored in an `IntGauge`."""
192
193 def __init__(self, cell):
194 """Creates a new IntGaugeCell.
195
196 Args:
197 cell: A c pointer of TFE_MonitoringIntGaugeCell.
198 """
199 self._cell = cell
200
201 def set(self, value):
202 """Atomically set the value.
203
204 Args:
205 value: integer value.
206 """
207 pywrap_tensorflow.TFE_MonitoringIntGaugeCellSet(self._cell, value)
208
209 def value(self):
210 """Retrieves the current value."""
211 return pywrap_tensorflow.TFE_MonitoringIntGaugeCellValue(self._cell)
212
213
214class IntGauge(Metric):

Callers 1

get_cellMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected