Args: tensors (str or [str]): names of tensors window_size (int): size of the moving window
(self, tensors, window_size)
| 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) |
nothing calls this directly
no test coverage detected