/aosp_15_r20/external/ComputeLibrary/tests/validation/fixtures/ |
H A D | ArithmeticDivisionFixture.h | 69 TensorType ref_src2 = create_tensor<TensorType>(shape1, data_type, 1); in compute_target() local 74 add.configure(&ref_src1, &ref_src2, &dst); in compute_target() 77 ARM_COMPUTE_ASSERT(ref_src2.info()->is_resizable()); in compute_target() 82 ref_src2.allocator()->allocate(); in compute_target() 86 ARM_COMPUTE_ASSERT(!ref_src2.info()->is_resizable()); in compute_target() 91 fill(AccessorType(ref_src2), 1); in compute_target() 103 SimpleTensor<T> ref_src2{ shape1, data_type, 1 }; in compute_reference() 107 fill(ref_src2, 1); in compute_reference() 109 return reference::arithmetic_division<T>(ref_src1, ref_src2, data_type); in compute_reference()
|
H A D | ComparisonFixture.h | 67 TensorType ref_src2 = create_tensor<TensorType>(shape1, data_type, 1, qinfo1); in compute_target() local 72 comp_op.configure(&ref_src1, &ref_src2, &dst, op); in compute_target() 75 ARM_COMPUTE_ASSERT(ref_src2.info()->is_resizable()); in compute_target() 80 ref_src2.allocator()->allocate(); in compute_target() 84 ARM_COMPUTE_ASSERT(!ref_src2.info()->is_resizable()); in compute_target() 89 fill(AccessorType(ref_src2), 1); in compute_target() 103 SimpleTensor<T> ref_src2{ shape1, data_type, 1, qinfo1 }; in compute_reference() 107 fill(ref_src2, 1); in compute_reference() 109 return reference::compare<T>(op, ref_src1, ref_src2); in compute_reference()
|
H A D | ElementwiseOperationsFixture.h | 92 TensorType ref_src2 = create_tensor<TensorType>(shape1, data_type1, 1, qinfo1); in compute_target() local 110 actual_dst = &ref_src2; in compute_target() 121 set_tensor_dynamic(ref_src2); in compute_target() 126 elem_op.configure(&ref_src1, &ref_src2, actual_dst); in compute_target() 131 set_tensor_static(ref_src2); in compute_target() 135 ARM_COMPUTE_ASSERT(ref_src2.info()->is_resizable()); in compute_target() 139 ref_src2.allocator()->allocate(); in compute_target() 150 ARM_COMPUTE_ASSERT(!ref_src2.info()->is_resizable()); in compute_target() 154 fill(AccessorType(ref_src2), 1); in compute_target() 168 SimpleTensor<T> ref_src2{ shape1, data_type1, 1, qinfo1 }; in compute_reference() [all …]
|
H A D | ArithmeticOperationsFixture.h | 72 TensorType ref_src2 = create_tensor<TensorType>(shape1, data_type, 1, qinfo1); in compute_target() local 90 actual_dst = &ref_src2; in compute_target() 96 arith_op.configure(&ref_src1, &ref_src2, actual_dst, convert_policy, _act_info); in compute_target() 99 ARM_COMPUTE_ASSERT(ref_src2.info()->is_resizable()); in compute_target() 103 ref_src2.allocator()->allocate(); in compute_target() 106 ARM_COMPUTE_ASSERT(!ref_src2.info()->is_resizable()); in compute_target() 118 fill(AccessorType(ref_src2), 1); in compute_target() 131 SimpleTensor<T> ref_src2{ shape1, data_type, 1, qinfo1 }; in compute_reference() 136 fill(ref_src2, 1); in compute_reference() 138 …auto result = reference::arithmetic_operation<T>(_op, ref_src1, ref_src2, ref_dst, convert_policy); in compute_reference()
|
/aosp_15_r20/external/ComputeLibrary/tests/validate_examples/ |
H A D | cl_gemm.cpp | 267 SimpleTensor<half> ref_src2 = { TensorShape(N, M, B), data_type, 1 }; in do_validate() local 271 fill(ref_src2, 2); in do_validate() 273 … SimpleTensor<half> ref_dst = reference::gemm<half>(ref_src0, ref_src1, ref_src2, alpha, beta); in do_validate() 281 SimpleTensor<float> ref_src2 = { TensorShape(N, M, B), data_type, 1 }; in do_validate() local 285 fill(ref_src2, 2); in do_validate() 287 … SimpleTensor<float> ref_dst = reference::gemm<float>(ref_src0, ref_src1, ref_src2, alpha, beta); in do_validate()
|
/aosp_15_r20/external/ComputeLibrary/tests/validation/CL/ |
H A D | PReluLayer.cpp | 106 SimpleTensor<float> ref_src2{ tensor_info.tensor_shape(), tensor_info.data_type() }; in compute_float_reference() local 110 library->fill_tensor_uniform(ref_src2, 1); in compute_float_reference() 112 …return reference::arithmetic_operation<float>(ArithmeticOperation::PRELU, ref_src1, ref_src2, ref_… in compute_float_reference()
|