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

Function to_input_format

compiler/circle-eval-diff/driver/Driver.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33InputFormat to_input_format(const std::string &str)
34{
35 auto small_str = to_lower_case(str);
36 if (small_str.compare("h5") == 0)
37 return InputFormat::H5;
38
39 if (small_str.compare("directory") == 0 || small_str.compare("dir") == 0)
40 return InputFormat::DIR;
41
42 throw std::runtime_error("Unsupported input format.");
43}
44
45void print_version(void)
46{

Callers 1

entryFunction · 0.85

Calls 2

to_lower_caseFunction · 0.70
compareMethod · 0.45

Tested by

no test coverage detected