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

Method __init__

tensorpack/callbacks/steps.py:24–31  ·  view source on GitHub ↗

Args: names(list): list of string, the names of the tensors to print.

(self, names)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

get_op_tensor_nameFunction · 0.85

Tested by

no test coverage detected