Args: names(tuple[str]): the names of the tensors to monitor on the progress bar.
(self, names=())
| 52 | _chief_only = False |
| 53 | |
| 54 | def __init__(self, names=()): |
| 55 | """ |
| 56 | Args: |
| 57 | names(tuple[str]): the names of the tensors to monitor |
| 58 | on the progress bar. |
| 59 | """ |
| 60 | super(ProgressBar, self).__init__() |
| 61 | self._names = [get_op_tensor_name(n)[1] for n in names] |
| 62 | self._tags = [get_op_tensor_name(n)[0].split("/")[-1] for n in names] |
| 63 | self._bar = None |
| 64 | |
| 65 | def _before_train(self): |
| 66 | self._last_updated = self.local_step |
nothing calls this directly
no test coverage detected