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

Method build

tensorflow/python/keras/engine/sequential.py:240–249  ·  view source on GitHub ↗
(self, input_shape=None)

Source from the content-addressed store, hash-verified

238
239 @base_layer_utils.default
240 def build(self, input_shape=None):
241 if self._is_graph_network:
242 self._init_graph_network(self.inputs, self.outputs, name=self.name)
243 else:
244 if input_shape is None:
245 raise ValueError('You must provide an `input_shape` argument.')
246 input_shape = tuple(input_shape)
247 self._build_input_shape = input_shape
248 super(Sequential, self).build(input_shape)
249 self.built = True
250
251 def call(self, inputs, training=None, mask=None): # pylint: disable=redefined-outer-name
252 if self._is_graph_network:

Callers 1

make_nested_seq_modelMethod · 0.95

Calls 3

tupleFunction · 0.85
_init_graph_networkMethod · 0.80
buildMethod · 0.65

Tested by 1

make_nested_seq_modelMethod · 0.76