| 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: |