(model_config)
| 140 | |
| 141 | @keras_export('keras.models.load_model') |
| 142 | def load_keras_model(model_config): |
| 143 | |
| 144 | custom_objects = {} |
| 145 | |
| 146 | if model_config is None: |
| 147 | raise ValueError('No model found in config.') |
| 148 | model_config = json.loads(model_config.decode('utf-8')) |
| 149 | model = model_config_lib.model_from_config(model_config, custom_objects=custom_objects) |
| 150 | |
| 151 | return model |
| 152 | |
| 153 | |
| 154 | def save_hdf5_graph(network, filepath='model.hdf5', save_weights=False, customized_data=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…