keras中get_source_inputs()函数的用途是什么?我在文档中没有看到任何有关此的信息。
from keras.engine.topology import get_source_inputs
谢谢!
最佳答案
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/