Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/keras/src/models/__init__.py: 100%
17 statements
« prev ^ index » next coverage.py v7.4.0, created at 2024-01-03 07:57 +0000
« prev ^ index » next coverage.py v7.4.0, created at 2024-01-03 07:57 +0000
1# Copyright 2022 The TensorFlow Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ==============================================================================
15"""Keras models API."""
18from keras.src.engine.functional import Functional
19from keras.src.engine.sequential import Sequential
20from keras.src.engine.training import Model
22# Private symbols that are used in tests.
23# TODO(b/221261361): Clean up private symbols usage and remove these imports.
24from keras.src.models.cloning import _clone_functional_model
25from keras.src.models.cloning import _clone_layer
26from keras.src.models.cloning import _clone_layers_and_model_config
27from keras.src.models.cloning import _clone_sequential_model
28from keras.src.models.cloning import clone_and_build_model
29from keras.src.models.cloning import clone_model
30from keras.src.models.cloning import share_weights
31from keras.src.models.sharpness_aware_minimization import SharpnessAwareMinimization
32from keras.src.saving.legacy.model_config import model_from_config
33from keras.src.saving.legacy.model_config import model_from_json
34from keras.src.saving.legacy.model_config import model_from_yaml
35from keras.src.saving.saving_api import load_model
36from keras.src.saving.saving_api import save_model