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

Function ValidateOpInput

tensorflow/core/framework/node_def_util.cc:792–802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790} // namespace
791
792Status ValidateOpInput(const string& input_name, bool* is_control_input) {
793 *is_control_input = false;
794 if (IsValidDataInputName(input_name)) {
795 return Status::OK();
796 } else if (IsValidControlInputName(input_name)) {
797 *is_control_input = true;
798 return Status::OK();
799 } else {
800 return errors::InvalidArgument("Illegal op input name '", input_name, "'");
801 }
802}
803
804Status ValidateOpName(const string& op_name) {
805 if (IsValidOpName(op_name)) {

Callers 1

Calls 3

IsValidDataInputNameFunction · 0.85
IsValidControlInputNameFunction · 0.85
InvalidArgumentFunction · 0.85

Tested by

no test coverage detected