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

Method _updated_config

tensorflow/python/keras/engine/network.py:1375–1390  ·  view source on GitHub ↗

Util shared between different serialization methods. Returns: Model config with Keras version information added.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 2

to_jsonMethod · 0.95
to_yamlMethod · 0.95

Calls 2

get_configMethod · 0.95
backendMethod · 0.80

Tested by

no test coverage detected