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

Method setup

tensorpack/input_source/input_source_base.py:129–140  ·  view source on GitHub ↗

Args: input_signature (list[tf.TensorSpec]): list of specs for each input tensor Returns: list[Callback]: extra callbacks needed by this InputSource. callbacks of InputSource cannot use any `trigger*()` method.

(self, input_signature)

Source from the content-addressed store, hash-verified

127
128 @call_only_once
129 def setup(self, input_signature):
130 """
131 Args:
132 input_signature (list[tf.TensorSpec]): list of specs for each input tensor
133
134 Returns:
135 list[Callback]: extra callbacks needed by this InputSource.
136 callbacks of InputSource cannot use any `trigger*()` method.
137 """
138 self._setup(input_signature)
139 self._setup_done = True
140 return self.get_callbacks()
141
142 def _setup(self, input_signature):
143 pass

Callers 15

_setup_graphMethod · 0.80
_setup_graphMethod · 0.80
_setupMethod · 0.80
_setupMethod · 0.80
_setupFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
export_compactMethod · 0.80
export_servingMethod · 0.80
_setup_inputMethod · 0.80

Calls 2

_setupMethod · 0.95
get_callbacksMethod · 0.95

Tested by

no test coverage detected