|View source on GitHub|
Compat aliases for migration
See Migration guide for more details.
tf.keras.models.clone_model( model, input_tensors=None, clone_function=None )
Model cloning is similar to calling a model on new inputs, except that it creates new layers (and thus new weights) instead of sharing the weights of the existing layers.
| || Instance of |
| ||optional list of input tensors or InputLayer objects to build the model upon. If not provided, placeholders will be created.|
| || Callable to be used to clone each layer in the target model (except |
| An instance of |
| || in case of invalid |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.