Module keras.saving.utils_v1

Utils for saving a Keras Model or Estimator to the SavedModel format.

Expand source code
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
# LINT.IfChange
"""Utils for saving a Keras Model or Estimator to the SavedModel format."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

# pylint: disable=wildcard-import
from keras.saving.utils_v1.export_output import *
from keras.saving.utils_v1.export_utils import build_all_signature_defs
from keras.saving.utils_v1.export_utils import export_outputs_for_mode
from keras.saving.utils_v1.export_utils import EXPORT_TAG_MAP
from keras.saving.utils_v1.export_utils import get_export_outputs
from keras.saving.utils_v1.export_utils import get_temp_export_dir
from keras.saving.utils_v1.export_utils import get_timestamped_export_dir
from keras.saving.utils_v1.export_utils import SIGNATURE_KEY_MAP
# pylint: enable=wildcard-import
# LINT.ThenChange(//tensorflow/python/saved_model/model_utils/__init__.py)

Sub-modules

keras.saving.utils_v1.export_output

Classes for different types of export output.

keras.saving.utils_v1.export_utils

Utilities for creating SavedModels.

keras.saving.utils_v1.mode_keys

Utils for managing different mode strings used by Keras and Estimator models.

keras.saving.utils_v1.signature_def_utils

SignatureDef utility functions implementation.

keras.saving.utils_v1.unexported_constants

Signature constants for SavedModel save and restore operations …