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

Function valid

compiler/loco/src/IR/PermutingCodec.cpp:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using loco::FeatureAxis;
31
32inline bool valid(const FeatureAxis &axis)
33{
34 switch (axis)
35 {
36 case FeatureAxis::Count:
37 return true;
38 case FeatureAxis::Depth:
39 return true;
40 case FeatureAxis::Height:
41 return true;
42 case FeatureAxis::Width:
43 return true;
44 default:
45 break;
46 }
47
48 return false;
49}
50
51inline bool valid(const loco::Permutation<loco::Domain::Feature> &perm)
52{

Callers 6

mappedMethod · 0.70
axisMethod · 0.70
PermutingCodec.cppFile · 0.70
shapeMethod · 0.70
valueMethod · 0.70
validMethod · 0.70

Calls 5

mappedMethod · 0.80
checkFunction · 0.50
axisMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected