in cpp/ops/TensorMath.cpp [34:52]
OpType mathOpToDeviceOp(MathOp op) {
switch (op) {
case MathOp::Add:
return kMathOp_Add;
case MathOp::Sub:
return kMathOp_Sub;
case MathOp::Mul:
return kMathOp_Mul;
case MathOp::Div:
return kMathOp_Div;
case MathOp::Min:
return kMathOp_Min;
case MathOp::Max:
return kMathOp_Max;
default:
CL_ASSERT_MSG(false, "undefined operator");
return kMathOp_Add;
}
}