gpt4 book ai didi

tensorflow - TensorFlow GraphDef 输入名称中的 '^' 前缀是什么意思?

转载 作者:行者123 更新时间:2023-12-03 19:34:46 25 4
gpt4 key购买 nike

一些 TensorFlow 保存的模型在输入名称前包含一个 '^'。这些名字有特定的含义吗?它们与常规输入有何不同?例如:

node {
name: "init"
op: "NoOp"
input: "^Variable/Assign"
input: "^Variable_1/Assign"
}

最佳答案

这意味着控制输入,即手动添加依赖操作(more on this here)。来自NodeDef protobuf 消息文档:

Each input is "node:src_output" with "node" being a string name and "src_output" indicating which output tensor to use from "node". If "src_output" is 0 the ":0" suffix can be omitted. Regular inputs may optionally be followed by control inputs that have the format "^node".

关于tensorflow - TensorFlow GraphDef 输入名称中的 '^' 前缀是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47782164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com