KerasSerializer Class
Serialize non-picklable Keras models.
Base class for serializing non-picklable models.
Serialize non-picklable Keras models.
Base class for serializing non-picklable models.
- Inheritance
-
azureml._logging.chained_identity.ChainedIdentityKerasSerializer
Constructor
KerasSerializer(**kwargs)
Methods
load |
Load the Keras model. |
save |
Save the Keras model. |
load
Load the Keras model.
load(state)
Parameters
Name | Description |
---|---|
state
Required
|
The unpickled state to be loaded. |
Returns
Type | Description |
---|---|
The loaded model. |
Exceptions
Type | Description |
---|---|
TensorFlow package missing. |
save
Save the Keras model.
save(model)
Parameters
Name | Description |
---|---|
model
Required
|
The model to save. |
Returns
Type | Description |
---|---|
The state to be pickled. |
Exceptions
Type | Description |
---|---|
Unsupported model type. |