tf.keras.utils.get_source_inputs
Stay organized with collections
Save and categorize content based on your preferences.
Returns the list of input tensors necessary to compute tensor
.
tf.keras.utils.get_source_inputs(
tensor, layer=None, node_index=None
)
Output will always be a list of tensors
(potentially with 1 element).
Args |
tensor
|
The tensor to start from.
|
layer
|
Origin layer of the tensor. Will be
determined via tensor._keras_history if not provided.
|
node_index
|
Origin node index of the tensor.
|
Returns |
List of input tensors.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-08-16 UTC.
[null,null,["Last updated 2021-08-16 UTC."],[],[],null,["# tf.keras.utils.get_source_inputs\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/keras/utils/get_source_inputs) | [View source on GitHub](https://github.com/keras-team/keras/tree/master/keras/utils/layer_utils.py#L27-L63) |\n\nReturns the list of input tensors necessary to compute `tensor`.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.keras.utils.get_source_inputs`](https://www.tensorflow.org/api_docs/python/tf/keras/utils/get_source_inputs)\n\n\u003cbr /\u003e\n\n tf.keras.utils.get_source_inputs(\n tensor, layer=None, node_index=None\n )\n\nOutput will always be a list of tensors\n(potentially with 1 element).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------|-------------------------------------------------------------------------------------------|\n| `tensor` | The tensor to start from. |\n| `layer` | Origin layer of the tensor. Will be determined via tensor._keras_history if not provided. |\n| `node_index` | Origin node index of the tensor. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| List of input tensors. ||\n\n\u003cbr /\u003e"]]