Util shared between different serialization methods. Returns: Model config with Keras version information added.
(self)
| 1373 | saving.load_weights_from_hdf5_group(f, self.layers) |
| 1374 | |
| 1375 | def _updated_config(self): |
| 1376 | """Util shared between different serialization methods. |
| 1377 | |
| 1378 | Returns: |
| 1379 | Model config with Keras version information added. |
| 1380 | """ |
| 1381 | from tensorflow.python.keras import __version__ as keras_version # pylint: disable=g-import-not-at-top |
| 1382 | |
| 1383 | config = self.get_config() |
| 1384 | model_config = { |
| 1385 | 'class_name': self.__class__.__name__, |
| 1386 | 'config': config, |
| 1387 | 'keras_version': keras_version, |
| 1388 | 'backend': backend.backend() |
| 1389 | } |
| 1390 | return model_config |
| 1391 | |
| 1392 | def to_json(self, **kwargs): |
| 1393 | """Returns a JSON string containing the network configuration. |
no test coverage detected