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

Function get_dtype

compiler/tfinfo/src/TensorInfoParser.cpp:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75TF_DataType get_dtype(const std::string &tok)
76{
77 if (tok == "TF_FLOAT")
78 return TF_FLOAT;
79 else
80 throw oops::UserExn("Unsupported tensor datatype", "data type", tok);
81}
82
83bool validate_num(const std::string &num)
84{

Callers 1

parse_lineFunction · 0.85

Calls 1

UserExnClass · 0.85

Tested by

no test coverage detected