MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tensorflow/python/keras/engine/network.py:158–169  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

156 ))
157
158 def __init__(self, *args, **kwargs): # pylint: disable=super-init-not-called
159 # Signature detection
160 if (len(args) == 2 or
161 len(args) == 1 and 'outputs' in kwargs or
162 'inputs' in kwargs and 'outputs' in kwargs):
163 # Graph network
164 self._init_graph_network(*args, **kwargs)
165 else:
166 # Subclassed network
167 self._init_subclassed_network(**kwargs)
168
169 tf_utils.assert_no_legacy_layers(self.layers)
170
171 # Several Network methods have "no_automatic_dependency_tracking"
172 # annotations. Since Network does automatic dependency tracking on attribute

Callers

nothing calls this directly

Calls 2

_init_graph_networkMethod · 0.95

Tested by

no test coverage detected