MCPcopy Create free account
hub / github.com/Samsung/ONE / validate_num

Function validate_num

compiler/tfinfo/src/TensorInfoParser.cpp:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool validate_num(const std::string &num)
84{
85 for (int i = 0; i < num.length(); i++)
86 if (!isdigit(num[i]))
87 return false;
88
89 return true;
90}
91
92bool validate_name(const std::string &tensor_name)
93{

Callers 2

validate_nameFunction · 0.85
parse_lineFunction · 0.85

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected