| 171 | } |
| 172 | |
| 173 | void 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 | |
| 186 | void NodeDefBuilder::VerifyInputType(const OpDef::ArgDef* input_arg, |
| 187 | DataType expected, DataType dt) { |
no test coverage detected