Description Usage Arguments Value Note See Also
View source: R/model-persistence.R
Export to Saved Model format
1 2 3 4 5 6 7 8 | model_to_saved_model(
model,
saved_model_path,
custom_objects = NULL,
as_text = FALSE,
input_signature = NULL,
serving_only = FALSE
)
|
model |
A Keras model to be saved. If the model is subclassed, the flag
|
saved_model_path |
a string specifying the path to the SavedModel directory. |
custom_objects |
Optional dictionary mapping string names to custom classes or functions (e.g. custom loss functions). |
as_text |
bool, |
input_signature |
A possibly nested sequence of |
serving_only |
bool, |
Invisibly returns the saved_model_path
.
This functionality is experimental and only works with TensorFlow version >= "2.0".
Other saved_model:
model_from_saved_model()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.