/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
D | move_binary_operator_before_reshape.cc | 62 Operator* binary_op = binary_it->get(); in Run() local 63 if (binary_op->type != OperatorType::kAdd && in Run() 64 binary_op->type != OperatorType::kMul && in Run() 65 binary_op->type != OperatorType::kSub && in Run() 66 binary_op->type != OperatorType::kDiv && in Run() 67 binary_op->type != OperatorType::kFloorDiv && in Run() 68 binary_op->type != OperatorType::kFloorMod && in Run() 69 binary_op->type != OperatorType::kMinimum && in Run() 70 binary_op->type != OperatorType::kMaximum && in Run() 71 binary_op->type != OperatorType::kLess && in Run() [all …]
|
D | resolve_constant_binary.cc | 66 const Operator* binary_op) { in EvaluateBinaryOperatorOnConstantInputs() argument 67 CHECK(IsConstantParameterArray(*model, binary_op->inputs[0])); in EvaluateBinaryOperatorOnConstantInputs() 68 CHECK(IsConstantParameterArray(*model, binary_op->inputs[1])); in EvaluateBinaryOperatorOnConstantInputs() 69 CHECK(binary_op->fused_activation_function == in EvaluateBinaryOperatorOnConstantInputs() 71 const auto& input0_array = model->GetArray(binary_op->inputs[0]); in EvaluateBinaryOperatorOnConstantInputs() 72 const auto& input1_array = model->GetArray(binary_op->inputs[1]); in EvaluateBinaryOperatorOnConstantInputs() 73 const auto& output_name = binary_op->outputs[0]; in EvaluateBinaryOperatorOnConstantInputs() 137 if (binary_op->type == OperatorType::kAdd) { in EvaluateBinaryOperatorOnConstantInputs() 139 } else if (binary_op->type == OperatorType::kMul) { in EvaluateBinaryOperatorOnConstantInputs() 141 } else if (binary_op->type == OperatorType::kSub) { in EvaluateBinaryOperatorOnConstantInputs() [all …]
|
D | remove_trivial_binary.cc | 54 auto* binary_op = binary_it->get(); in Run() local 55 if (binary_op->type != OperatorType::kAdd && in Run() 56 binary_op->type != OperatorType::kMul && in Run() 57 binary_op->type != OperatorType::kSub && in Run() 58 binary_op->type != OperatorType::kDiv) { in Run() 62 CHECK_EQ(binary_op->inputs.size(), 2); in Run() 67 IsConstantParameterArray(*model, binary_op->inputs[0]), in Run() 68 IsConstantParameterArray(*model, binary_op->inputs[1]), in Run() 86 const auto& input_array_0 = model->GetArray(binary_op->inputs[0]); in Run() 87 const auto& input_array_1 = model->GetArray(binary_op->inputs[1]); in Run() [all …]
|
D | fuse_binary_into_following_affine.cc | 158 auto* binary_op = binary_it->get(); in Run() local 159 if (binary_op->type != OperatorType::kAdd && in Run() 160 binary_op->type != OperatorType::kMul && in Run() 161 binary_op->type != OperatorType::kSub && in Run() 162 binary_op->type != OperatorType::kDiv) { in Run() 166 CHECK_EQ(binary_op->inputs.size(), 2); in Run() 176 IsConstantParameterArray(*model, binary_op->inputs[0]), in Run() 177 IsConstantParameterArray(*model, binary_op->inputs[1]), in Run() 194 if (binary_op->type == OperatorType::kDiv) { in Run() 197 LogName(*binary_op)); in Run() [all …]
|
D | fuse_binary_into_preceding_affine.cc | 211 const auto* binary_op = binary_it->get(); in Run() local 212 if (binary_op->type != OperatorType::kAdd && in Run() 213 binary_op->type != OperatorType::kMul && in Run() 214 binary_op->type != OperatorType::kSub && in Run() 215 binary_op->type != OperatorType::kDiv) { in Run() 219 CHECK_EQ(binary_op->inputs.size(), 2); in Run() 229 IsConstantParameterArray(*model, binary_op->inputs[0]), in Run() 230 IsConstantParameterArray(*model, binary_op->inputs[1]), in Run() 247 if (binary_op->type == OperatorType::kDiv) { in Run() 250 LogName(*binary_op)); in Run() [all …]
|
D | fuse_broadcast_into_following_binary.cc | 59 auto* binary_op = binary_it->get(); in Run() local 62 if (binary_op->inputs.size() != 2) { in Run() 65 if (binary_op->type != OperatorType::kAdd && in Run() 66 binary_op->type != OperatorType::kMul && in Run() 67 binary_op->type != OperatorType::kSub && in Run() 68 binary_op->type != OperatorType::kDiv) { in Run() 74 GetOpWithOutput(*model, binary_op->inputs[0]), in Run() 75 GetOpWithOutput(*model, binary_op->inputs[1]), in Run() 89 LogName(*binary_op), op[0] ? LogName(*op[0]) : "(?)", in Run() 98 LogName(*op[broadcast_index]), LogName(*binary_op)); in Run() [all …]
|
/external/llvm-project/pstl/test/std/numerics/numeric.ops/ |
D | transform_scan.pass.cpp | 43 BinaryOp binary_op, T trash) in operator ()() 49 …ansform_inclusive_scan(std::execution::seq, first, last, expected_first, binary_op, unary_op, init) in operator ()() 50 …nsform_exclusive_scan(std::execution::seq, first, last, expected_first, init, binary_op, unary_op); in operator ()() 51 …auto orr2 = inclusive ? transform_inclusive_scan(exec, first, last, out_first, binary_op, unary_op… in operator ()() 52 … : transform_exclusive_scan(exec, first, last, out_first, init, binary_op, unary_op); in operator ()() 59 … = transform_inclusive_scan(std::execution::seq, first, last, expected_first, binary_op, unary_op); in operator ()() 60 orr2 = transform_inclusive_scan(exec, first, last, out_first, binary_op, unary_op); in operator ()() 81 T init, BinaryOperation binary_op) noexcept in transform_inclusive_scan_serial() argument 85 init = binary_op(init, unary_op(*first)); in transform_inclusive_scan_serial() 95 T init, BinaryOperation binary_op) noexcept in transform_exclusive_scan_serial() argument [all …]
|
D | scan.pass.cpp | 37 …(InputIterator first, InputIterator last, OutputIterator result, T init, BinaryOperation binary_op) in exclusive_scan_serial() argument 42 init = binary_op(init, *first); in exclusive_scan_serial() 50 …(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op, T init) in inclusive_scan_serial() argument 54 init = binary_op(init, *first); in inclusive_scan_serial() 62 …n_serial(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op) in inclusive_scan_serial() argument 68 return inclusive_scan_serial(++first, last, ++result, binary_op, tmp); in inclusive_scan_serial() 142 Iterator3 expected_first, Iterator3, Size n, T init, BinaryOp binary_op, T trash) in operator ()() 146 … auto orr1 = inclusive ? inclusive_scan_serial(in_first, in_last, expected_first, binary_op, init) in operator ()() 147 … : exclusive_scan_serial(in_first, in_last, expected_first, init, binary_op); in operator ()() 149 auto orr = inclusive ? inclusive_scan(exec, in_first, in_last, out_first, binary_op, init) in operator ()() [all …]
|
D | reduce.pass.cpp | 34 test_long_form(T init, BinaryOp binary_op, F f) in test_long_form() argument 42 expected = binary_op(expected, in[k]); in test_long_form() 46 …T result = transform_reduce_serial(in.cfbegin(), in.cfend(), init, binary_op, [](const T& t) { ret… in test_long_form() 49 …on_all_policies(test_long_forms_for_one_policy(), in.begin(), in.end(), init, binary_op, expected); in test_long_form() 50 …_all_policies(test_long_forms_for_one_policy(), in.cbegin(), in.cend(), init, binary_op, expected); in test_long_form()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | optimize.cc | 621 Operation *binary_op = fc_op.input().getDefiningOp(); in matchAndRewrite() local 622 if (!binary_op || binary_op->getNumOperands() != 2) return failure(); in matchAndRewrite() 628 if (!matchPattern(binary_op->getOperand(1), m_Constant(&cst))) in matchAndRewrite() 652 if (llvm::isa<AddOp, SubOp>(binary_op)) { in matchAndRewrite() 660 if (llvm::isa<SubOp>(binary_op)) cst_value.changeSign(); in matchAndRewrite() 696 fc_op.setOperand(0, binary_op->getOperand(0)); in matchAndRewrite() 698 } else if (llvm::isa<MulOp, DivOp>(binary_op)) { in matchAndRewrite() 703 bool is_mul = llvm::isa<MulOp>(binary_op); in matchAndRewrite() 712 fc_op.setOperand(0, binary_op->getOperand(0)); in matchAndRewrite() 763 LogicalResult matchAndRewrite(BinaryOpType binary_op, in matchAndRewrite() [all …]
|
/external/libcxx/include/ |
D | numeric | 26 accumulate(InputIterator first, InputIterator last, T init, BinaryOperation binary_op); 38 reduce(InputIterator first, InputIterator last, T init, BinaryOperation binary_op); // C++17 64 BinaryOperation binary_op, UnaryOperation unary_op); // C++17 72 …ial_sum(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op); 82 OutputIterator result, T init, BinaryOperation binary_op); // C++17 91 OutputIterator result, BinaryOperation binary_op); // C++17 96 OutputIterator result, BinaryOperation binary_op, T init); // C++17 103 BinaryOperation binary_op, UnaryOperation unary_op); // C++17 110 BinaryOperation binary_op, UnaryOperation unary_op); // C++17 117 BinaryOperation binary_op, UnaryOperation unary_op, [all …]
|
/external/tensorflow/tensorflow/lite/delegates/xnnpack/ |
D | binary_elementwise_tester.cc | 62 void BinaryElementwiseTester::Test(tflite::BuiltinOperator binary_op, in Test() argument 75 switch (binary_op) { in Test() 90 std::vector<char> buffer = CreateTfLiteModel(binary_op); in Test() 171 tflite::BuiltinOperator binary_op) const { in CreateTfLiteModel() 176 switch (binary_op) { in CreateTfLiteModel() 193 {CreateOperatorCode(builder, binary_op)}}; in CreateTfLiteModel() 345 switch (binary_op) { in CreateTfLiteModel()
|
D | binary_elementwise_tester.h | 116 void Test(tflite::BuiltinOperator binary_op, TfLiteDelegate* delegate) const; 119 std::vector<char> CreateTfLiteModel(tflite::BuiltinOperator binary_op) const;
|
/external/crosvm/acpi_tables/src/ |
D | aml.rs | 1155 macro_rules! binary_op { macro 1182 binary_op!(Add, ADDOP); 1183 binary_op!(Concat, CONCATOP); 1184 binary_op!(Subtract, SUBTRACTOP); 1185 binary_op!(Multiply, MULTIPLYOP); 1186 binary_op!(ShiftLeft, SHIFTLEFTOP); 1187 binary_op!(ShiftRight, SHIFTRIGHTOP); 1188 binary_op!(And, ANDOP); 1189 binary_op!(Nand, NANDOP); 1190 binary_op!(Or, OROP); [all …]
|
/external/rust/crates/ring/src/ec/suite_b/ops/ |
D | p384.rs | 16 elem::{binary_op, binary_op_assign}, 205 binary_op(GFp_p384_scalar_mul_mont, a, b) in p384_scalar_inv_to_mont() 209 binary_op(GFp_p384_scalar_mul_mont, a, a) in p384_scalar_inv_to_mont() 241 binary_op(GFp_p384_scalar_mul_mont, a, &N_RR) in p384_scalar_inv_to_mont()
|
D | elem.rs | 58 binary_op(f, a, b) in mul_mont() 63 pub fn binary_op<M, EA: Encoding, EB: Encoding, ER: Encoding>( in binary_op() function
|
D | p256.rs | 16 elem::{binary_op, binary_op_assign}, 227 binary_op(GFp_p256_scalar_mul_mont, a, b) in p256_scalar_inv_to_mont() 261 binary_op(GFp_p256_scalar_mul_mont, a, &N_RR) in p256_scalar_inv_to_mont()
|
/external/llvm-project/libcxx/include/ |
D | numeric | 25 accumulate(InputIterator first, InputIterator last, T init, BinaryOperation binary_op); 37 reduce(InputIterator first, InputIterator last, T init, BinaryOperation binary_op); // C++17 63 BinaryOperation binary_op, UnaryOperation unary_op); // C++17 71 …ial_sum(InputIterator first, InputIterator last, OutputIterator result, BinaryOperation binary_op); 81 OutputIterator result, T init, BinaryOperation binary_op); // C++17 90 OutputIterator result, BinaryOperation binary_op); // C++17 95 OutputIterator result, BinaryOperation binary_op, T init); // C++17 102 BinaryOperation binary_op, UnaryOperation unary_op); // C++17 109 BinaryOperation binary_op, UnaryOperation unary_op); // C++17 116 BinaryOperation binary_op, UnaryOperation unary_op, [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | redux_functor.h | 271 const BinaryFunctor binary_op; in operator() local 275 reduction_axis, reducer, binary_op]( in operator() 293 buf(coordinate) = binary_op(buf(coordinate), reduced(0)); in operator() 300 buf(coordinate) = binary_op(buf(coordinate), reduced(0)); in operator() 308 buf(coordinate) = binary_op(buf(coordinate), reduced(0)); in operator()
|
/external/libcxx/include/experimental/ |
D | simd | 154 typename V::value_type neutral_element, BinaryOperation binary_op); 157 typename V::value_type reduce(const const_where_expression<M, V>& x, plus<> binary_op = plus<>()); 160 typename V::value_type reduce(const const_where_expression<M, V>& x, multiplies<> binary_op); 163 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_and<> binary_op); 166 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_or<> binary_op); 169 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_xor<> binary_op); 1239 typename _SimdType::value_type neutral_element, _BinaryOp binary_op); 1244 plus<typename _SimdType::value_type> binary_op = {}); 1249 multiplies<typename _SimdType::value_type> binary_op); 1254 bit_and<typename _SimdType::value_type> binary_op); [all …]
|
/external/llvm-project/libcxx/include/experimental/ |
D | simd | 153 typename V::value_type neutral_element, BinaryOperation binary_op); 156 typename V::value_type reduce(const const_where_expression<M, V>& x, plus<> binary_op = plus<>()); 159 typename V::value_type reduce(const const_where_expression<M, V>& x, multiplies<> binary_op); 162 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_and<> binary_op); 165 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_or<> binary_op); 168 typename V::value_type reduce(const const_where_expression<M, V>& x, bit_xor<> binary_op); 1241 typename _SimdType::value_type neutral_element, _BinaryOp binary_op); 1246 plus<typename _SimdType::value_type> binary_op = {}); 1251 multiplies<typename _SimdType::value_type> binary_op); 1256 bit_and<typename _SimdType::value_type> binary_op); [all …]
|
/external/libchrome/base/test/ |
D | trace_event_analyzer.cc | 684 Query::Query(const Query& left, const Query& right, Operator binary_op) in Query() argument 685 : operator_(binary_op), in Query() 690 type_ = (binary_op < OP_ADD ? in Query()
|
/external/python/cpython3/Objects/ |
D | abstract.c | 896 binary_op(PyObject *v, PyObject *w, const int op_slot, const char *op_name) in binary_op() function 1004 return binary_op(v, w, NB_SLOT(op), op_name); \ 1068 return binary_op(v, w, NB_SLOT(nb_matrix_multiply), "@"); in PyNumber_MatrixMultiply() 1074 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); in PyNumber_FloorDivide() 1080 return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); in PyNumber_TrueDivide() 1086 return binary_op(v, w, NB_SLOT(nb_remainder), "%"); in PyNumber_Remainder()
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | op_level_cost_estimator_test.cc | 1092 for (auto binary_op : binary_ops) { in TEST_F() local 1094 DescribeBinaryOp(binary_op.first, kTensorSize1, kTensorSize2); in TEST_F() 1098 binary_op.second * kTensorSize1 * kTensorSize2 * 2 / in TEST_F() 1103 << binary_op.first; in TEST_F() 1105 << binary_op.first; in TEST_F() 1108 << binary_op.first; in TEST_F()
|
/external/python/cpython2/Objects/ |
D | abstract.c | 995 binary_op(PyObject *v, PyObject *w, const int op_slot, const char *op_name) function 1170 return binary_op(v, w, NB_SLOT(op), op_name); \ 1236 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); 1243 return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); 1249 return binary_op(v, w, NB_SLOT(nb_remainder), "%");
|