MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / bool_val

Function bool_val

src/runtime/CL/mlgo/MLGOParser.cpp:293–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293bool bool_val(TokenStream &in, bool &valid)
294{
295 LOG_TOKEN_POS(in, pos);
296 auto tok = in.take();
297 if (tok.type != TokenType::Int)
298 {
299 FAIL_WITH_MSG_DEFAULT(valid, false, pos, "Expect bool or int token");
300 }
301 bool val{};
302 std::stringstream(tok.value) >> val;
303 return val;
304}
305
306int int_val(TokenStream &in, bool &valid)
307{

Callers 2

gemm_config_reshapedFunction · 0.85

Calls 1

takeMethod · 0.80

Tested by

no test coverage detected