A single integer value stored in an `IntGauge`.
| 188 | |
| 189 | |
| 190 | class 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 | |
| 214 | class IntGauge(Metric): |