Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

export_savedmodel.keras.engine.training.Model

Export a Saved Model


Description

Serialize a model to disk.

Usage

## S3 method for class 'keras.engine.training.Model'
export_savedmodel(
  object,
  export_dir_base,
  overwrite = TRUE,
  versioned = !overwrite,
  remove_learning_phase = TRUE,
  as_text = FALSE,
  ...
)

Arguments

object

An R object.

export_dir_base

A string containing a directory in which to export the SavedModel.

overwrite

Should the export_dir_base directory be overwritten?

versioned

Should the model be exported under a versioned subdirectory?

remove_learning_phase

Should the learning phase be removed by saving and reloading the model? Defaults to TRUE.

as_text

Whether to write the SavedModel in text format.

...

Other arguments passed to tf.saved_model.save. (Used only if TensorFlow version >= 2.0)

Value

The path to the exported directory, as a string.


keras

R Interface to 'Keras'

v2.4.0
MIT + file LICENSE
Authors
Daniel Falbel [ctb, cph, cre], JJ Allaire [aut, cph], François Chollet [aut, cph], RStudio [ctb, cph, fnd], Google [ctb, cph, fnd], Yuan Tang [ctb, cph] (<https://orcid.org/0000-0001-5243-233X>), Wouter Van Der Bijl [ctb, cph], Martin Studer [ctb, cph], Sigrid Keydana [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.