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

Function get_kind

compiler/tfinfo/src/TensorInfoParser.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65ParsedTensor::Kind get_kind(const std::string &tok)
66{
67 if (tok == "input")
68 return ParsedTensor::Kind::Input;
69 else if (tok == "output")
70 return ParsedTensor::Kind::Output;
71 else
72 throw oops::UserExn("Unrecognizable token", "token", tok);
73}
74
75TF_DataType get_dtype(const std::string &tok)
76{

Callers 1

parse_lineFunction · 0.85

Calls 1

UserExnClass · 0.85

Tested by

no test coverage detected