Home
last modified time | relevance | path

Searched refs:unary_op (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_constant_unary.cc120 const auto* unary_op = unary_it->get(); in Run() local
122 switch (unary_op->type) { in Run()
143 if (!IsConstantParameterArray(*model, unary_op->inputs[0])) { in Run()
149 if (unary_op->inputs[0] == rnn_state.back_edge_source_array()) { in Run()
152 if (unary_op->inputs[0] == rnn_state.state_array()) { in Run()
157 auto& output_array = model->GetArray(unary_op->outputs[0]); in Run()
166 if (unary_op->fused_activation_function != in Run()
171 LogName(*unary_op)); in Run()
177 if (unary_op->type == OperatorType::kReshape) { in Run()
178 CopyMinMaxFromFirstInput(*unary_op, model); in Run()
[all …]
/external/llvm-project/pstl/test/std/numerics/numeric.ops/
Dtransform_scan.pass.cpp42 …Iterator out_last, OutputIterator expected_first, OutputIterator, Size n, UnaryOp unary_op, T init, 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 …rr2 = inclusive ? transform_inclusive_scan(exec, first, last, out_first, binary_op, unary_op, init) 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 ()()
80 …can_serial(InputIterator first, InputIterator last, OutputIterator result, UnaryOperation unary_op, in transform_inclusive_scan_serial() argument
85 init = binary_op(init, unary_op(*first)); in transform_inclusive_scan_serial()
94 …can_serial(InputIterator first, InputIterator last, OutputIterator result, UnaryOperation unary_op, in transform_exclusive_scan_serial() argument
[all …]
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/
Dpartition.pass.cpp72 Size n, UnaryOp unary_op, Generator generator) in operator ()()
79 BiDirIt exp_last, Size n, UnaryOp unary_op, Generator generator) in operator ()()
86 Size n, UnaryOp unary_op, Generator generator)
93 BiDirIt exp_last, Size n, UnaryOp unary_op, Generator generator)
100 …y&& exec, BiDirIt first, BiDirIt last, BiDirIt exp_first, BiDirIt exp_last, Size, UnaryOp unary_op, in operator ()()
106 BiDirIt actual_ret = std::partition(exec, first, last, unary_op); in operator ()()
107 … EXPECT_TRUE(std::all_of(first, actual_ret, unary_op) && !std::any_of(actual_ret, last, unary_op), in operator ()()
113 BiDirIt exp_ret = std::stable_partition(exp_first, exp_last, unary_op); in operator ()()
115 BiDirIt actual_ret = std::stable_partition(exec, first, last, unary_op); in operator ()()
Dpartition_copy.pass.cpp31 OutputIterator2 false_first, OutputIterator2, UnaryOp unary_op) in operator ()()
34 auto actual_ret = std::partition_copy(exec, first, last, true_first, false_first, unary_op); in operator ()()
36 … EXPECT_TRUE(std::distance(true_first, actual_ret.first) == std::count_if(first, last, unary_op), in operator ()()
38 …std::distance(false_first, actual_ret.second) == std::count_if(first, last, std::not_fn(unary_op)), in operator ()()
49 OutputIterator2 false_last, UnaryOp unary_op) in operator ()()
57 OutputIterator2 false_last, UnaryOp unary_op) in operator ()()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dunary_elementwise_tester.cc37 void UnaryElementwiseTester::Test(tflite::BuiltinOperator unary_op, in Test() argument
42 switch (unary_op) { in Test()
51 std::vector<char> buffer = CreateTfLiteModel(unary_op); in Test()
101 switch (unary_op) { in Test()
129 tflite::BuiltinOperator unary_op) const { in CreateTfLiteModel()
132 CreateOperatorCode(builder, unary_op); in CreateTfLiteModel()
Dunary_elementwise_tester.h55 void Test(tflite::BuiltinOperator unary_op, TfLiteDelegate* delegate) const;
58 std::vector<char> CreateTfLiteModel(tflite::BuiltinOperator unary_op) const;
/external/gemmlowp/test/
Dtest_fixedpoint.cc325 void TestUnaryOp(const tUnaryOpType& unary_op, in TestUnaryOp() argument
334 input[j] = std::min(unary_op.MaxInput(), in TestUnaryOp()
335 std::max(unary_op.MinInput(), raw_input)); in TestUnaryOp()
342 reference[j] = unary_op.ReferenceOp(input[j]); in TestUnaryOp()
343 actual_scalar[j] = unary_op.Op(input[j]); in TestUnaryOp()
346 if (std::abs(diff) > unary_op.Tolerance()) { in TestUnaryOp()
348 unary_op.Tolerance()); in TestUnaryOp()
350 Check(std::abs(diff) <= unary_op.Tolerance()); in TestUnaryOp()
358 Store<SimdType>(actual_simd, unary_op.Op(Load<SimdType>(input))); in TestUnaryOp()
/external/squashfs-tools/squashfs-tools/
Daction.h107 struct unary_op { struct
118 struct unary_op unary_op; argument
Daction.c218 free_parse_tree(expr->unary_op.expr); in free_parse_tree()
262 expr->unary_op.expr = lhs; in create_unary_op()
263 expr->unary_op.op = op; in create_unary_op()
712 match = !eval_expr_log(expr->unary_op.expr, action_data); in eval_expr_log()
740 match = !eval_expr(expr->unary_op.expr, action_data); in eval_expr()
3156 printf("%s", token_table[expr->unary_op.op].string); in dump_parse_tree()
3157 dump_parse_tree(expr->unary_op.expr); in dump_parse_tree()
/external/tensorflow/tensorflow/core/grappler/inputs/
Dtrivial_test_graph_input_yielder.cc50 Output unary_op = in CreateGraphDef() local
55 this_stage.push_back(unary_op); in CreateGraphDef()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.h334 const std::function<ReturnT(NativeT)>& unary_op, in ElementWiseUnaryOpImpl() argument
343 return unary_op(operand_literal.Get<NativeT>(multi_index)); in ElementWiseUnaryOpImpl()
Dhlo_evaluator_typed_visitor.h157 const std::function<ElementwiseT(ElementwiseT)>& unary_op) {
158 return [&unary_op](ReturnT arg) {
159 return static_cast<ReturnT>(unary_op(static_cast<ElementwiseT>(arg)));
2959 const std::function<ElementwiseT(ElementwiseT)>& unary_op) {
2965 instruction, ConvertUnaryFunction(unary_op), operand_literal)));
/external/libcxx/include/
Dnumeric64 BinaryOperation binary_op, UnaryOperation unary_op); // 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,
/external/rust/crates/ring/src/ec/suite_b/ops/
Delem.rs89 pub fn unary_op<M, E: Encoding>( in unary_op() function
Dp256.rs232 unary_op(GFp_p256_scalar_sqr_mont, a) in p256_scalar_inv_to_mont()
/external/llvm-project/libcxx/include/
Dnumeric63 BinaryOperation binary_op, UnaryOperation unary_op); // 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,
/external/libchrome/base/test/
Dtrace_event_analyzer.cc694 Query::Query(const Query& left, Operator unary_op) in Query() argument
695 : operator_(unary_op), in Query()
699 type_ = (unary_op < OP_ADD ? in Query()
Dtrace_event_analyzer.h609 Query(const Query& left, Operator unary_op);
/external/rust/crates/cexpr/src/
Dexpr.rs281 fn unary_op(input: (&[u8], EvalResult)) -> Option<EvalResult> { in unary_op() function
313 unary_op, in unary()
/external/tensorflow/tensorflow/python/ops/
Dsparse_ops.py3178 for unary_op in _UNARY_OPS:
3179 _UnaryMapValueDispatcher(unary_op).register(unary_op)
/external/python/cpython3/Python/
Dast_opt.c78 typedef PyObject *(*unary_op)(PyObject*); in fold_unaryop() typedef
79 static const unary_op ops[] = { in fold_unaryop()
/external/tensorflow/tensorflow/core/grappler/costs/
Dop_level_cost_estimator_test.cc1060 for (auto unary_op : unary_ops) { in TEST_F() local
1061 OpContext op_context = DescribeUnaryOp(unary_op.first, kTensorSize); in TEST_F()
1065 unary_op.second * kTensorSize / in TEST_F()
1071 << unary_op.first; in TEST_F()
/external/llvm-project/pstl/test/support/
Dutils.h1258 UnaryOperation unary_op) noexcept
1262 init = binary_op(init, unary_op(*first));
/external/libtextclassifier/abseil-cpp/absl/algorithm/
Dcontainer.h587 UnaryOp&& unary_op) {
590 std::forward<UnaryOp>(unary_op));
/external/libabigail/tests/data/test-diff-dwarf/
DPR25058-liblttng-ctl-report-1.txt449 …; filter_node* rchild;} op; struct {unary_op_type type; filter_node* child;} unary_op;} u' changed:
501 type of 'struct {unary_op_type type; filter_node* child;} unary_op' changed:

12