Home
last modified time | relevance | path

Searched refs:is_add (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc2924 const bool is_add = IsAdd(*node) || IsBiasAdd(*node) || IsLogicalOr(*node); in SimplifyArithmeticOperations() local
2929 (is_mul || is_matmul || is_add || is_sub || is_any_div) && in SimplifyArithmeticOperations()
2954 if ((is_mul && x_is_one) || (is_add && x_is_zero)) { in SimplifyArithmeticOperations()
2984 ((is_add || is_sub) && y_is_zero)) { in SimplifyArithmeticOperations()
3310 const bool is_add = IsAdd(*node); in ConstantPushDown() local
3314 if (!(is_add || is_sub || is_mul || is_div)) return false; in ConstantPushDown()
3315 const bool is_symmetric = is_add || is_mul; in ConstantPushDown()
3328 const bool is_add_sub = (is_add || is_sub) && (is_child_add || is_child_sub); in ConstantPushDown()
3423 const string symmetric_op = (is_add || is_sub) ? "Add" : "Mul"; in ConstantPushDown()
3424 const string nonsymmetric_op = (is_add || is_sub) ? "Sub" : "Div"; in ConstantPushDown()
Dfunction_optimizer_test.cc1331 const auto feed_args = [&](bool is_add) { in TEST_F() argument
1335 feed.emplace_back("is_add", test::AsScalar<bool>(is_add)); in TEST_F()
1394 const auto feed_args = [&](bool is_add) { in TEST_F() argument
1398 feed.emplace_back("is_add", test::AsScalar<bool>(is_add)); in TEST_F()
Dconstant_folding_test.cc459 for (int is_add : {true, false}) { in TEST_F()
474 if (is_add) { in TEST_F()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_qpu_schedule.c227 uint32_t waddr, bool is_add) in process_waddr_deps() argument
230 bool is_a = is_add ^ ((inst & QPU_WS) != 0); in process_waddr_deps()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Dfolding_rules.cpp403 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic() local
405 bool swap_operands = !is_add || zero_is_variable; in MergeNegateAddSubArithmetic()
406 bool negate_const = is_add; in MergeNegateAddSubArithmetic()
/external/deqp-deps/SPIRV-Tools/source/opt/
Dfolding_rules.cpp403 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic() local
405 bool swap_operands = !is_add || zero_is_variable; in MergeNegateAddSubArithmetic()
406 bool negate_const = is_add; in MergeNegateAddSubArithmetic()
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/
Dfolding_rules.cpp456 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic() local
458 bool swap_operands = !is_add || zero_is_variable; in MergeNegateAddSubArithmetic()
459 bool negate_const = is_add; in MergeNegateAddSubArithmetic()