/aosp12/packages/modules/NeuralNetworks/common/operations/ |
H A D | Reduce.cpp | 52 inline bool compute(IOperationExecutionContext* context, T init, T func(T, T)) { in compute() function 177 return compute<float>(context, 1, [](float a, float b) -> float { in executeProd() 201 return compute<_Float16>(context, kFloat16Lowest, in executeMax() 204 return compute<float>(context, std::numeric_limits<float>::lowest(), in executeMax() 210 return compute<int8_t>(context, std::numeric_limits<int8_t>::lowest(), in executeMax() 220 return compute<_Float16>(context, kFloat16Max, in executeMin() 223 return compute<float>(context, std::numeric_limits<float>::max(), in executeMin() 226 return compute<uint8_t>(context, std::numeric_limits<uint8_t>::max(), in executeMin() 229 return compute<int8_t>(context, std::numeric_limits<int8_t>::max(), in executeMin() 239 return compute<bool8>(context, false, in executeAny() [all …]
|
H A D | Dequantize.cpp | 36 bool compute(const InputType* inputData, const Shape& inputShape, OutputType* outputData) { in compute() function 125 return compute(inputBuffer, inputShape, in execute() 128 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute() 133 return compute(inputBuffer, inputShape, in execute() 136 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute() 141 return compute(inputBuffer, inputShape, in execute() 144 return compute(inputBuffer, inputShape, context->getOutputBuffer<float>(kOutputTensor)); in execute()
|
H A D | Neg.cpp | 40 inline bool compute(const T* input, const Shape& shape, T* output) { in compute() function 72 return compute(context->getInputBuffer<_Float16>(kInputTensor), in execute() 76 return compute(context->getInputBuffer<float>(kInputTensor), in execute() 80 return compute(context->getInputBuffer<int32_t>(kInputTensor), in execute()
|
H A D | Elementwise.cpp | 38 inline bool compute(IntermediateType func(IntermediateType), const T* input, const Shape& shape, in compute() function 50 return compute<float, _Float16>(func, context->getInputBuffer<_Float16>(kInputTensor), in execute() 54 return compute<float, float>(func, context->getInputBuffer<float>(kInputTensor), in execute() 67 return compute<float, _Float16>(std::abs, in executeAbs() 72 return compute<float, float>(std::abs, context->getInputBuffer<float>(kInputTensor), in executeAbs() 76 return compute<int32_t, int32_t>(std::abs, in executeAbs()
|
H A D | Comparisons.cpp | 40 bool compute(const std::function<bool(ComparisonType, ComparisonType)>& func, const DataType* aData, in compute() function 72 return compute<DataType, ComparisonType>( in executeLessTyped() 81 return compute<DataType, ComparisonType>( in executeLessEqualTyped() 90 return compute<DataType, ComparisonType>( in executeEqualTyped() 99 return compute<DataType, ComparisonType>( in executeNotEqualTyped() 108 return compute<DataType, ComparisonType>( in executeGreaterEqualTyped() 117 return compute<DataType, ComparisonType>( in executeGreaterTyped()
|
H A D | LogicalAndOr.cpp | 39 bool compute(const std::function<bool(bool, bool)>& func, const bool8* aData, const Shape& aShape, in compute() function 83 return compute( in executeAnd() 91 return compute( in executeOr()
|
H A D | LogSoftmax.cpp | 42 inline bool compute(const T* input, const Shape& shape, T beta, uint32_t axis, T* output) { in compute() function 102 return compute(context->getInputBuffer<_Float16>(kInputTensor), in execute() 107 return compute(context->getInputBuffer<float>(kInputTensor), in execute()
|
H A D | LogicalNot.cpp | 34 bool compute(const bool8* input, const Shape& shape, bool8* output) { in compute() function 63 return compute(context->getInputBuffer<bool8>(kInputTensor), in execute()
|
/aosp12/frameworks/compile/slang/tests/F_root_compute_really_bad/ |
H A D | stderr.txt.expect | 2 root_compute_really_bad.rscript:5:31: error: In compute kernel root(), special parameter 'x' must b… 3 root_compute_really_bad.rscript:6:19: error: In compute kernel root(), parameter 'extra1' cannot ap… 4 root_compute_really_bad.rscript:6:36: error: In compute kernel root(), parameter 'extra2' cannot ap… 12 root_compute_really_bad.rscript:10:66: error: Unexpected parameter 'x1' for compute kernel root2() 13 root_compute_really_bad.rscript:11:26: error: Unexpected parameter 'y1' for compute kernel root2() 14 root_compute_really_bad.rscript:16:38: error: In compute kernel root_kernel(), special parameter 'x… 15 root_compute_really_bad.rscript:16:50: error: In compute kernel root_kernel(), parameter 'extra1' c… 16 root_compute_really_bad.rscript:16:67: error: In compute kernel root_kernel(), parameter 'extra2' c…
|
/aosp12/hardware/interfaces/neuralnetworks/utils/common/test/ |
H A D | ResilientExecution.cpp | 100 TEST(ResilientExecutionTest, compute) { in TEST() argument 103 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(Return(kNoExecutionError)); in TEST() 106 const auto result = execution->compute({}); in TEST() 116 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(kReturnGeneralFailure); in TEST() 119 const auto result = execution->compute({}); in TEST() 129 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(kReturnDeadObject); in TEST() 133 const auto result = execution->compute({}); in TEST() 143 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(kReturnDeadObject); in TEST() 145 EXPECT_CALL(*recoveredMockExecution, compute(_)).Times(1).WillOnce(Return(kNoExecutionError)); in TEST() 149 const auto result = execution->compute({}); in TEST()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ringbuffer/ |
H A D | AvailableTicketCounter.java | 62 private int compute() { in compute() method in AvailableTicketCounter 75 value = compute(); in get() 86 int value = compute(); in freeze() 102 int newValue = compute(); in unfreeze()
|
/aosp12/frameworks/rs/tests/cpp_api/cppbasic/ |
H A D | Android.mk | 4 LOCAL_MODULE:= rstest-compute 13 compute.cpp
|
/aosp12/frameworks/rs/tests/cpp_api/cppbasic-getpointer/ |
H A D | Android.mk | 4 LOCAL_MODULE:= rstest-compute-getpointer 12 compute.cpp
|
/aosp12/frameworks/rs/tests/cpp_api/cppbasic-shared/ |
H A D | Android.mk | 4 LOCAL_MODULE:= rstest-compute-shared 12 compute.cpp
|
/aosp12/frameworks/compile/slang/tests/F_root_compute_too_many_args/ |
H A D | stderr.txt.expect | 1 root_compute_too_many_args.rscript:6:20: error: In compute kernel root(), parameter 'extra1' cannot… 2 root_compute_too_many_args.rscript:6:37: error: In compute kernel root(), parameter 'extra2' cannot…
|
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/test/ |
H A D | PreparedModelTest.cpp | 357 const auto computeResult = createResult.value()->compute({}); in TEST() 380 const auto computeResult = createResult.value()->compute({}); in TEST() 401 const auto computeResult = createResult.value()->compute({}); in TEST() 422 const auto computeResult = createResult.value()->compute({}); in TEST() 446 const auto computeResult = createResult.value()->compute({}); in TEST() 470 const auto computeResult = createResult.value()->compute({}); in TEST() 492 const auto computeResult = createResult.value()->compute({}); in TEST() 513 const auto computeResult = createResult.value()->compute({}); in TEST() 534 const auto computeResult = createResult.value()->compute({}); in TEST() 557 const auto computeResult = createResult.value()->compute({}); in TEST()
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/ |
H A D | TestTrivialModel.cpp | 125 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F() 186 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in testAddTwoWithHardwareBufferInput() 214 ASSERT_EQ(execution2.compute(), Result::NO_ERROR); in TEST_F() 225 ASSERT_EQ(execution3.compute(), Result::NO_ERROR); in TEST_F() 297 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F() 326 ASSERT_EQ(execution.compute(), Result::NO_ERROR); in TEST_F()
|
H A D | TestExecution.cpp | 739 void computeHelper(bool reusable, const std::function<void()>& compute) { in computeHelper() argument 742 compute(); in computeHelper() 746 compute(); in computeHelper() 765 const auto compute = [this, &execution] { in TestWait() local 786 computeHelper(reusable, compute); in TestWait() 793 const auto compute = [this, &execution] { in TestWait() local 813 computeHelper(reusable, compute); in TestWait() 825 const auto compute = [this, &execution] { in TestWait() local 847 computeHelper(reusable, compute); in TestWait() 856 const auto compute = [this, &execution] { in TestWait() local [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | RotationCache.java | 57 final R result = mComputation.compute(t, rotation); in getOrCompute() 68 R compute(T t, int rotation); in compute() method
|
/aosp12/packages/modules/NeuralNetworks/runtime/ |
H A D | ExecutionBuilder.h | 92 return compute(synchronizationCallback); in computeAsynchronously() 94 int computeSynchronously() { return compute(nullptr); } in computeSynchronously() 95 int burstCompute(BurstBuilder* burst) { return compute(nullptr, burst); } in burstCompute() 148 int compute(std::shared_ptr<ExecutionCallback>* synchronizationCallback, 381 std::tuple<int, std::vector<OutputShape>, Timing> compute(
|
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/test/ |
H A D | PreparedModelTest.cpp | 245 const auto computeResult = createResult.value()->compute({}); in TEST() 267 const auto computeResult = createResult.value()->compute({}); in TEST() 288 const auto computeResult = createResult.value()->compute({}); in TEST() 308 const auto computeResult = createResult.value()->compute({}); in TEST() 328 const auto computeResult = createResult.value()->compute({}); in TEST() 350 const auto computeResult = createResult.value()->compute({}); in TEST()
|
/aosp12/frameworks/rs/script_api/ |
H A D | rs_core.spec | 20 RenderScript is a high-performance runtime that provides compute operations at the native level. 24 to write RenderScript code in C99. The RenderScript compute header files are automatically
|
/aosp12/hardware/qcom/display/msm8960/liboverlay/ |
H A D | overlayUtils.cpp | 223 static inline int compute(const uint32_t& x, const uint32_t& y, in compute() function 233 srcCrop.x = compute(whf.w, srcCrop.x, srcCrop.w); in preRotateSource() 236 srcCrop.y = compute(whf.h, srcCrop.y, srcCrop.h); in preRotateSource() 240 srcCrop.x = compute(whf.h, in preRotateSource()
|
/aosp12/hardware/qcom/display/msm8994/liboverlay/ |
H A D | overlayUtils.cpp | 307 static inline int compute(const uint32_t& x, const uint32_t& y, in compute() function 314 srcCrop.x = compute(whf.w, srcCrop.x, srcCrop.w); in preRotateSource() 317 srcCrop.y = compute(whf.h, srcCrop.y, srcCrop.h); in preRotateSource() 321 srcCrop.x = compute(whf.h, in preRotateSource()
|
/aosp12/hardware/qcom/display/msm8226/liboverlay/ |
H A D | overlayUtils.cpp | 314 static inline int compute(const uint32_t& x, const uint32_t& y, in compute() function 321 srcCrop.x = compute(whf.w, srcCrop.x, srcCrop.w); in preRotateSource() 324 srcCrop.y = compute(whf.h, srcCrop.y, srcCrop.h); in preRotateSource() 328 srcCrop.x = compute(whf.h, in preRotateSource()
|