# tf.saved_model.SaveOptions

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/saved_model/save_options.py#L28-L48) |

Options for saving to SavedModel.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.saved_model.SaveOptions`](https://www.tensorflow.org/api_docs/python/tf/saved_model/SaveOptions)

<br />

    tf.saved_model.SaveOptions(
        namespace_whitelist=None
    )

This function may be used in the `options` argument in functions that
save a SavedModel ([`tf.saved_model.save`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/saved_model/save), [`tf.keras.models.save_model`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/keras/models/save_model)).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `namespace_whitelist` | List of strings containing op namespaces to whitelist when saving a model. Saving an object that uses namespaced ops must explicitly add all namespaces to the whitelist. The namespaced ops must be registered into the framework when loading the SavedModel. |

<br />

## Class Variables

- `namespace_whitelist`