Home
last modified time | relevance | path

Searched refs:binary_op (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dmove_binary_operator_before_reshape.cc62 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 …]
Dresolve_constant_binary.cc65 const Operator* binary_op) { in EvaluateBinaryOperatorOnConstantInputs() argument
66 CHECK(IsConstantParameterArray(*model, binary_op->inputs[0])); in EvaluateBinaryOperatorOnConstantInputs()
67 CHECK(IsConstantParameterArray(*model, binary_op->inputs[1])); in EvaluateBinaryOperatorOnConstantInputs()
68 CHECK(binary_op->fused_activation_function == in EvaluateBinaryOperatorOnConstantInputs()
70 const auto& input0_array = model->GetArray(binary_op->inputs[0]); in EvaluateBinaryOperatorOnConstantInputs()
71 const auto& input1_array = model->GetArray(binary_op->inputs[1]); in EvaluateBinaryOperatorOnConstantInputs()
72 const auto& output_name = binary_op->outputs[0]; in EvaluateBinaryOperatorOnConstantInputs()
136 if (binary_op->type == OperatorType::kAdd) { in EvaluateBinaryOperatorOnConstantInputs()
138 } else if (binary_op->type == OperatorType::kMul) { in EvaluateBinaryOperatorOnConstantInputs()
140 } else if (binary_op->type == OperatorType::kSub) { in EvaluateBinaryOperatorOnConstantInputs()
[all …]
Dfuse_binary_into_following_affine.cc158 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 …]
Dremove_trivial_binary.cc54 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 …]
Dfuse_binary_into_preceding_affine.cc196 const auto* binary_op = binary_it->get(); in Run() local
197 if (binary_op->type != OperatorType::kAdd && in Run()
198 binary_op->type != OperatorType::kMul && in Run()
199 binary_op->type != OperatorType::kSub && in Run()
200 binary_op->type != OperatorType::kDiv) { in Run()
204 CHECK_EQ(binary_op->inputs.size(), 2); in Run()
214 IsConstantParameterArray(*model, binary_op->inputs[0]), in Run()
215 IsConstantParameterArray(*model, binary_op->inputs[1]), in Run()
232 if (binary_op->type == OperatorType::kDiv) { in Run()
235 LogName(*binary_op)); in Run()
[all …]
Dfuse_broadcast_into_following_binary.cc59 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/libcxx/include/
Dnumeric26 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 …]
Dalgorithm203 OutputIterator result, BinaryOperation binary_op);
/external/libcxx/include/experimental/
Dsimd154 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/python/cpython3/Objects/
Dabstract.c834 binary_op(PyObject *v, PyObject *w, const int op_slot, const char *op_name) in binary_op() function
943 return binary_op(v, w, NB_SLOT(op), op_name); \
1007 return binary_op(v, w, NB_SLOT(nb_matrix_multiply), "@"); in PyNumber_MatrixMultiply()
1013 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); in PyNumber_FloorDivide()
1019 return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); in PyNumber_TrueDivide()
1025 return binary_op(v, w, NB_SLOT(nb_remainder), "%"); in PyNumber_Remainder()
/external/python/cpython2/Objects/
Dabstract.c995 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), "%");
/external/v8/src/parsing/
Dparser.h977 BinaryOperation* binary_op, NaryOperation* nary_op) {
983 source_range_map_->Find(binary_op));
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator_typed_visitor.h131 binary_op) { in ConvertBinaryFunction() argument
132 return [&binary_op](ReturnT arg1, ReturnT arg2) { in ConvertBinaryFunction()
133 return static_cast<ReturnT>(binary_op(static_cast<ElementwiseT>(arg1), in ConvertBinaryFunction()
2946 binary_op) { in ElementWiseBinaryOp() argument
2960 return ConvertBinaryFunction(binary_op)( in ElementWiseBinaryOp()