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

Method __init__

tensorpack/callbacks/summary.py:152–162  ·  view source on GitHub ↗

Args: tensors (str or [str]): names of tensors window_size (int): size of the moving window

(self, tensors, window_size)

Source from the content-addressed store, hash-verified

150 of some tensors.
151 """
152 def __init__(self, tensors, window_size):
153 """
154 Args:
155 tensors (str or [str]): names of tensors
156 window_size (int): size of the moving window
157 """
158
159 self._tensor_names = [get_op_tensor_name(x)[1] for x in tensors]
160 self._display_names = [get_op_tensor_name(x)[0] for x in tensors]
161 self._window = int(window_size)
162 self._queue = deque(maxlen=window_size)
163
164 def _setup_graph(self):
165 tensors = self.get_tensors_maybe_in_tower(self._tensor_names)

Callers

nothing calls this directly

Calls 1

get_op_tensor_nameFunction · 0.85

Tested by

no test coverage detected