Args: names(list): list of string, the names of the tensors to print.
(self, names)
| 22 | """ |
| 23 | |
| 24 | def __init__(self, names): |
| 25 | """ |
| 26 | Args: |
| 27 | names(list): list of string, the names of the tensors to print. |
| 28 | """ |
| 29 | names = [get_op_tensor_name(n)[1] for n in names] |
| 30 | logger.warn("Using tf.Print in the graph is much faster than TensorPrinter!") |
| 31 | self._names = names |
| 32 | |
| 33 | def _setup_graph(self): |
| 34 | self._fetches = self.get_tensors_maybe_in_tower(self._names) |
nothing calls this directly
no test coverage detected