Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
75
TF_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
83
bool validate_num(const std::string &num)
84
{
Callers
1
parse_line
Function · 0.85
Calls
1
UserExn
Class · 0.85
Tested by
no test coverage detected