Home
last modified time | relevance | path

Searched refs:in1 (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptC_reduce_general_input.java.expect152 // in1 = "in"
153 public result_int reduce_my_half_0(short[] in1) {
154 // Verify that "in1" is non-null.
155 if (in1 == null) {
156 throw new RSIllegalArgumentException("Array \"in1\" is null!");
158 Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
160 ain1.copyFrom(in1);
185 // in1 = "in"
186 public result_int reduce_my_half_1(short[] in1) {
187 // Verify that "in1" is non-null.
[all …]
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
DScriptC_reduce_general_accumulator.java.expect84 // in1 = "val"
85 public result_int reduce_my_half(int[] in1) {
86 // Verify that "in1" is non-null.
87 if (in1 == null) {
88 throw new RSIllegalArgumentException("Array \"in1\" is null!");
90 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length);
92 ain1.copyFrom(in1);
117 // in1 = "val"
118 public result_int reduce_my_half2(int[] in1) {
119 // Verify that "in1" is non-null.
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptC_reduce_general_result.java.expect2719 // in1 = "val"
2720 public result_half reduce_my_half(short[] in1) {
2721 // Verify that "in1" is non-null.
2722 if (in1 == null) {
2723 throw new RSIllegalArgumentException("Array \"in1\" is null!");
2725 Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
2727 ain1.copyFrom(in1);
2752 // in1 = "val", flattened 2-vectors
2753 public result_half2 reduce_my_half2(short[] in1) {
2754 // Verify that "in1" is non-null.
[all …]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptC_reduce_general_inputs.java.expect124 // in1 = "a"
126 public result_int reduce_my_half_half_0(short[] in1, short[] in2) {
127 // Verify that "in1" is non-null.
128 if (in1 == null) {
129 throw new RSIllegalArgumentException("Array \"in1\" is null!");
131 Allocation ain1 = Allocation.createSized(mRSLocal, __F16, in1.length);
133 ain1.copyFrom(in1);
139 if (in1.length != in2.length) {
140 … throw new RSRuntimeException("Array length mismatch between parameters \"in1\" and \"in2\"!");
188 // in1 = "a"
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples/
DScriptC_reduce_general_examples.java.expect205 // in1 = "val"
206 public result_int reduce_addint(int[] in1) {
207 // Verify that "in1" is non-null.
208 if (in1 == null) {
209 throw new RSIllegalArgumentException("Array \"in1\" is null!");
211 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length);
213 ain1.copyFrom(in1);
238 // in1 = "val"
239 public result_int reduce_mpyint(int[] in1) {
240 // Verify that "in1" is non-null.
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples_backward/
DScriptC_reduce_general_examples_backward.java.expect205 // in1 = "val"
206 public result_int reduce_addint(int[] in1) {
207 // Verify that "in1" is non-null.
208 if (in1 == null) {
209 throw new RSIllegalArgumentException("Array \"in1\" is null!");
211 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length);
213 ain1.copyFrom(in1);
238 // in1 = "val"
239 public result_int reduce_mpyint(int[] in1) {
240 // Verify that "in1" is non-null.
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples_explicit/
DScriptC_reduce_general_examples_explicit.java.expect167 // in1 = "val"
168 public result_int reduce_addint_init(int[] in1) {
169 // Verify that "in1" is non-null.
170 if (in1 == null) {
171 throw new RSIllegalArgumentException("Array \"in1\" is null!");
173 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length);
175 ain1.copyFrom(in1);
200 // in1 = "val"
201 public result_int reduce_addint_comb(int[] in1) {
202 // Verify that "in1" is non-null.
[all …]
Dreduce_general_examples_explicit.rscript46 static void dpiAccum(float *accum, float in1, float in2) {
47 *accum += in1*in2;
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dforeach_multi.rscript47 uint32_t RS_KERNEL sum2(uint32_t in0, uint32_t in1, uint32_t x) {
49 _RS_ASSERT(in1 == x);
51 return in0 + in1;
55 sum2_struct(uint32_t in0, uint32_t in1, uint32_t x) {
58 _RS_ASSERT(in1 == x);
62 retval.i0 = in0 + in1;
63 retval.i1 = in0 + in1;
64 retval.i2 = in0 + in1;
65 retval.i3 = in0 + in1;
66 retval.i4 = in0 + in1;
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dforeach_multi.rscript49 uint32_t RS_KERNEL sum2(uint32_t in0, uint32_t in1, uint32_t x) {
51 _RS_ASSERT(in1 == x);
53 return in0 + in1;
57 sum2_struct(uint32_t in0, uint32_t in1, uint32_t x) {
60 _RS_ASSERT(in1 == x);
64 retval.i0 = in0 + in1;
65 retval.i1 = in0 + in1;
66 retval.i2 = in0 + in1;
67 retval.i3 = in0 + in1;
68 retval.i4 = in0 + in1;
[all …]
/frameworks/compile/slang/tests/P_reduce_general_duplicate_array/
DScriptC_reduce_general_duplicate_array.java.expect84 // in1 = "val"
85 public resultArray4_int reduce_sumDec(int[] in1) {
86 // Verify that "in1" is non-null.
87 if (in1 == null) {
88 throw new RSIllegalArgumentException("Array \"in1\" is null!");
90 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length);
92 ain1.copyFrom(in1);
117 // in1 = "val"
118 public resultArray4_int reduce_sumInc(int[] in1) {
119 // Verify that "in1" is non-null.
[all …]
/frameworks/ml/nn/common/operations/
DMaximumMinimum.cpp92 bool prepare(const Shape& in1, const Shape& in2, Shape* out) { in prepare() argument
93 NN_CHECK(in1.type == in2.type); in prepare()
94 return calculateBroadcastedShape(in1, in2, out); in prepare()
97 bool eval(const void* in1, const Shape& shape1, const void* in2, const Shape& shape2, in eval() argument
102 return evalGeneric(reinterpret_cast<const _Float16*>(in1), shape1, in eval()
107 return evalGeneric(reinterpret_cast<const float*>(in1), shape1, in eval()
112 return evalGeneric(reinterpret_cast<const int32_t*>(in1), shape1, in eval()
117 return evalQuant8(reinterpret_cast<const uint8_t*>(in1), shape1, in eval()
122 return evalQuant8(reinterpret_cast<const int8_t*>(in1), shape1, in eval()
DBroadcast.cpp74 const float* in1, const Shape& shape1, const float* in2, const Shape& shape2,
77 bool binaryOperationFloat16(const _Float16* in1, const Shape& shape1, const _Float16* in2, in binaryOperationFloat16() argument
81 convertFloat16ToFloat32(in1, &in1_float32); in binaryOperationFloat16()
93 bool addFloat32(const float* in1, const Shape& shape1, const float* in2, const Shape& shape2, in addFloat32() argument
101 in1, convertShapeToDims(shape1), in2, convertShapeToDims(shape2), out, \ in addFloat32()
110 in1, convertShapeToDims(shape1), in2, convertShapeToDims(shape2), out, \ in addFloat32()
120 bool addFloat16(const _Float16* in1, const Shape& shape1, const _Float16* in2, const Shape& shape2, in addFloat16() argument
123 return binaryOperationFloat16(in1, shape1, in2, shape2, activation, out, shapeOut, &addFloat32); in addFloat16()
127 bool addQuant8(const T* in1, const Shape& shape1, const T* in2, const Shape& shape2, in addQuant8() argument
183 op_params, convertShapeToTflshape(shape1), in1, convertShapeToTflshape(shape2), in addQuant8()
[all …]
DMaximumMinimum.h26 bool prepare(const Shape& in1, const Shape& in2, Shape* output);
28 bool eval(const void* in1, const Shape& shape1, const void* in2, const Shape& shape2,
/frameworks/compile/slang/tests/P_reduce_general_examples_halter/
DScriptC_reduce_general_examples_halter.java.expect122 // in1 = "inVal"
123 public result_int reduce_fz(int[] in1) {
124 // Verify that "in1" is non-null.
125 if (in1 == null) {
126 throw new RSIllegalArgumentException("Array \"in1\" is null!");
128 Allocation ain1 = Allocation.createSized(mRSLocal, __I32, in1.length);
130 ain1.copyFrom(in1);
155 // in1 = "inVal"
156 public result_int2 reduce_fz2(int[] in1) {
157 // Verify that "in1" is non-null.
[all …]
/frameworks/rs/
DrsCppUtils.h103 T rsMin(T in1, T in2) in rsMin() argument
105 if (in1 > in2) { in rsMin()
108 return in1; in rsMin()
112 T rsMax(T in1, T in2) { in rsMax() argument
113 if (in1 < in2) { in rsMax()
116 return in1; in rsMax()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_x86.cpp762 __m128i in0, in1, out0, out1; in rsdIntrinsicBlendSrcOver_K() local
770 in1 = _mm_loadu_si128((const __m128i *)src + 1); in rsdIntrinsicBlendSrcOver_K()
790 ins = _mm_unpacklo_epi8(in1, _mm_setzero_si128()); in rsdIntrinsicBlendSrcOver_K()
798 ins = _mm_unpackhi_epi8(in1, _mm_setzero_si128()); in rsdIntrinsicBlendSrcOver_K()
818 __m128i in0, in1, out0, out1; in rsdIntrinsicBlendDstOver_K() local
826 in1 = _mm_loadu_si128((const __m128i *)src + 1); in rsdIntrinsicBlendDstOver_K()
850 t2 = _mm_unpacklo_epi8(in1, _mm_setzero_si128()); in rsdIntrinsicBlendDstOver_K()
858 t3 = _mm_unpackhi_epi8(in1, _mm_setzero_si128()); in rsdIntrinsicBlendDstOver_K()
875 __m128i in0, in1, out0, out1; in rsdIntrinsicBlendSrcIn_K() local
881 in1 = _mm_loadu_si128((const __m128i *)src + 1); in rsdIntrinsicBlendSrcIn_K()
[all …]
/frameworks/compile/slang/tests/F_too_many_inputs/
Dtoo_many_inputs.rscript5 int RS_KERNEL good(int in0, int in1, int in2, int in3, int in4, int in5, int in6, int in7) {
9 int RS_KERNEL bad(int in0, int in1, int in2, int in3, int in4, int in5, int in6, int in7, int in8) {
/frameworks/rs/tests/lldb/java/SingleSource/src/rs/
Drs_single_source.rscript48 void script_invoke_1(rs_allocation out, rs_allocation in1, rs_allocation in2)
51 rsForEach(kernel_1, out, in1);
56 rsForEach(kernel_2, out, in1, in2);
/frameworks/rs/tests/lldb/java/SingleSource/src/com/android/rs/singlesource/
DMainActivity.java52 float [] in1 = new float[]{ 1.f, 2.f, 3.f, 4.f }; in onCreate() local
53 mAllocIn1.copyFrom(in1); in onCreate()
/frameworks/base/tools/aapt/tests/
DPseudolocales_test.cpp36 static void compound_helper(const char* in1, const char* in2, const char *in3, in compound_helper() argument
40 pseudo.text(String16(String8(in1))) + \ in compound_helper()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dwb_vad.c83 Word16 * in1, /* i/o : input values; output high-pass part */ in filter5() argument
93 temp0 = vo_sub(*in1, vo_mult(COEFF5_2, data[1])); in filter5()
98 *in1 = extract_h((vo_L_sub(temp1, temp2) << 15)); in filter5()
111 Word16 * in1, /* i/o : input values; output high-pass part */ in filter3() argument
117 temp1 = vo_sub(*in1, vo_mult(COEFF3, *data)); in filter3()
121 *in1 = extract_h((vo_L_sub(*in0, temp2) << 15)); in filter3()
/frameworks/ml/nn/common/
DOperationsUtils.cpp116 bool SameShape(const Shape& in1, const Shape& in2) { in SameShape() argument
117 if (in1.type != in2.type || in1.dimensions.size() != in2.dimensions.size()) { in SameShape()
120 for (size_t i = 0; i < in1.dimensions.size(); i++) { in SameShape()
121 if (in1.dimensions[i] != in2.dimensions[i]) { in SameShape()
341 bool calculateBroadcastedShape(const Shape& in1, const Shape& in2, Shape* out) { in calculateBroadcastedShape() argument
342 NN_RET_CHECK(in1.type == in2.type); in calculateBroadcastedShape()
343 uint32_t numberOfDims1 = getNumberOfDimensions(in1); in calculateBroadcastedShape()
350 dim1 = getSizeOfDimension(in1, numberOfDims1 - i); in calculateBroadcastedShape()
/frameworks/compile/slang/tests/P_kernel_multi_in/
Dkernel_multi_in.rscript5 int RS_KERNEL multi_in(uint32_t in0, uint32_t in1) {
/frameworks/compile/slang/tests/F_multi_in_target_version/
Dstderr.txt.expect1 multi_in_target_version.rscript:5:43: error: Invalid parameter 'in1' for compute kernel root(). Ker…

12