MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / AddInput

Method AddInput

tensorflow/core/framework/node_def_builder.cc:173–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void NodeDefBuilder::AddInput(StringPiece src_node, int src_index) {
174 if (src_node.empty()) {
175 errors_.push_back("Empty input node name");
176 } else if (src_node[0] == '^') {
177 errors_.push_back(
178 strings::StrCat("Non-control input starting with ^: ", src_node));
179 } else if (src_index > 0) {
180 node_def_.add_input(strings::StrCat(src_node, ":", src_index));
181 } else {
182 node_def_.add_input(string(src_node));
183 }
184}
185
186void NodeDefBuilder::VerifyInputType(const OpDef::ArgDef* input_arg,
187 DataType expected, DataType dt) {

Callers 4

RunLocalSendMethod · 0.45
ExecuteOpMethod · 0.45
TFE_OpAddInputFunction · 0.45
TFE_OpAddInputListFunction · 0.45

Calls 4

StrCatFunction · 0.50
emptyMethod · 0.45
push_backMethod · 0.45
add_inputMethod · 0.45

Tested by

no test coverage detected