MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/callbacks/steps.py:54–63  ·  view source on GitHub ↗

Args: names(tuple[str]): the names of the tensors to monitor on the progress bar.

(self, names=())

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_op_tensor_nameFunction · 0.85

Tested by

no test coverage detected