python - keras中的get_source_inputs函数

标签 python function deep-learning keras

keras中get_source_inputs()函数的用途是什么?我在文档中没有看到任何有关此的信息。

from keras.engine.topology import get_source_inputs

谢谢!

最佳答案

From the source code :

def get_source_inputs(张量,layer=None,node_index=None):

Returns the list of input tensors necessary to compute tensor.

Output will always be a list of tensors (potentially with 1 element).

Arguments

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.

关于python - keras中的get_source_inputs函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46340949/

相关文章:

python - 如何在postgresql中使用没有双引号的peewee orm为flask app创建表

python - 如何在 Python IDE : Spyder? 中缩进代码块

python - matplotlib 中具有 N 个不同颜色阴影的条形图

python - 创建一个可以被 conda 环境中的 jupyter Notebook 理解的 python 模块

r - 如何跨运行应用函数

javascript 摘要函数

javascript - 如何确保Else语句保留在同一个html页面上?

machine-learning - 深度神经网络的非线性意味着什么?

python - 恢复和评估 Tensorflow 模型

deep-learning - 我们是否应该使用 Huggingface(预)训练一个 BERT 无框模型的小写输入数据?