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

Method VerifyInputRef

tensorflow/core/framework/node_def_builder.cc:195–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void NodeDefBuilder::VerifyInputRef(const OpDef::ArgDef* input_arg,
196 DataType dt) {
197 if (input_arg->is_ref() && !IsRefType(dt)) {
198 errors_.push_back(strings::StrCat("Input '", input_arg->name(), "' passed ",
199 DataTypeString(dt),
200 " expected ref type"));
201 }
202}
203
204NodeDefBuilder& NodeDefBuilder::ControlInput(StringPiece src_node) {
205 control_inputs_.emplace_back(src_node);

Callers

nothing calls this directly

Calls 6

IsRefTypeFunction · 0.85
is_refMethod · 0.80
DataTypeStringFunction · 0.70
nameMethod · 0.65
StrCatFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected