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

Method _symbolic_call

tensorflow/python/keras/engine/base_layer.py:2173–2182  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

2171 self._initial_weights = None
2172
2173 def _symbolic_call(self, inputs):
2174 input_shapes = nest.map_structure(lambda x: x.shape, inputs)
2175 output_shapes = self.compute_output_shape(input_shapes)
2176
2177 def _make_placeholder_like(shape):
2178 ph = backend.placeholder(shape=shape, dtype=self.dtype)
2179 ph._keras_mask = None
2180 return ph
2181
2182 return nest.map_structure(_make_placeholder_like, output_shapes)
2183
2184 def _get_trainable_state(self):
2185 """Get the `trainable` state of each sublayer.

Callers 1

__call__Method · 0.95

Calls 1

compute_output_shapeMethod · 0.95

Tested by

no test coverage detected