/frameworks/ml/nn/common/operations/ |
D | LogicalAndOr.cpp | 39 bool compute(const std::function<bool(bool, bool)>& func, const bool8* aData, const Shape& aShape, in compute() 40 const bool8* bData, const Shape& bShape, bool8* outputData, const Shape& outputShape) { in compute() 84 std::logical_and<bool>(), context->getInputBuffer<bool8>(kInputTensor1), in executeAnd() 85 context->getInputShape(kInputTensor1), context->getInputBuffer<bool8>(kInputTensor2), in executeAnd() 86 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeAnd() 92 std::logical_or<bool>(), context->getInputBuffer<bool8>(kInputTensor1), in executeOr() 93 context->getInputShape(kInputTensor1), context->getInputBuffer<bool8>(kInputTensor2), in executeOr() 94 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeOr()
|
D | Comparisons.cpp | 44 const Shape& aShape, const DataType* bData, const Shape& bShape, bool8* outputData, in compute() 78 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeLessTyped() 87 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeLessEqualTyped() 96 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeEqualTyped() 105 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeNotEqualTyped() 114 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeGreaterEqualTyped() 123 context->getInputShape(kInputTensor2), context->getOutputBuffer<bool8>(kOutputTensor), in executeGreaterTyped() 169 return executeLessTyped<bool8, bool8>(context); in executeLess() 188 return executeLessEqualTyped<bool8, bool8>(context); in executeLessEqual() 207 return executeEqualTyped<bool8, bool8>(context); in executeEqual() [all …]
|
D | LogicalNot.cpp | 37 bool compute(const bool8* input, const Shape& shape, bool8* output) { in compute() 66 return compute(context->getInputBuffer<bool8>(kInputTensor), in execute() 68 context->getOutputBuffer<bool8>(kOutputTensor)); in execute()
|
D | Reduce.cpp | 66 context->getInputValue<bool8>(kInputKeepDims), tempIndex.data(), tempAxes.data(), init, in compute() 147 bool keepDims = context->getInputValue<bool8>(kInputKeepDims); in prepare() 237 return compute<bool8>(context, false, in executeAny() 238 [](bool8 a, bool8 b) { return static_cast<bool8>(a || b); }); in executeAny() 247 return compute<bool8>(context, true, in executeAll() 248 [](bool8 a, bool8 b) { return static_cast<bool8>(a && b); }); in executeAll()
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/ |
D | reduce_all.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 38 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model() 48 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 85 ….data = TestBuffer::createFromVector<bool8>({true, true, true, true, true, false, true, true, true… in get_test_model_2() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_2() 115 .data = TestBuffer::createFromVector<bool8>({true, false}), in get_test_model_2() 152 ….data = TestBuffer::createFromVector<bool8>({true, true, true, true, true, true, true, true, false… in get_test_model_3() 172 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_3() 182 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_3()
|
D | reduce_any.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 38 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model() 48 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 85 ….data = TestBuffer::createFromVector<bool8>({false, false, false, false, false, false, false, true… in get_test_model_2() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_2() 115 .data = TestBuffer::createFromVector<bool8>({false, true}), in get_test_model_2() 152 ….data = TestBuffer::createFromVector<bool8>({false, false, false, false, false, false, false, true… in get_test_model_3() 172 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_3() 182 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_3()
|
D | logical_or.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_simple() 28 .data = TestBuffer::createFromVector<bool8>({true, false, true, false}), in get_test_model_simple() 38 .data = TestBuffer::createFromVector<bool8>({true, false, true, true}), in get_test_model_simple() 75 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast() 85 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_broadcast() 95 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast()
|
D | logical_and.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_simple() 28 .data = TestBuffer::createFromVector<bool8>({true, false, true, false}), in get_test_model_simple() 38 … .data = TestBuffer::createFromVector<bool8>({true, false, false, false}), in get_test_model_simple() 75 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast() 85 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_broadcast() 95 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast()
|
D | reduce_any_b155508675.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 48 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model()
|
D | reduce_all_b155508675.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 48 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model()
|
D | equal.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple() 95 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple_all_inputs_as_internal() 220 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple_int32() 277 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple_float16() 334 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple_float16_all_inputs_as_internal() 459 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple_relaxed() 516 .data = TestBuffer::createFromVector<bool8>({false, true, false}), in get_test_model_simple_relaxed_all_inputs_as_internal() 641 .data = TestBuffer::createFromVector<bool8>({false, true, true, false}), in get_test_model_broadcast() 698 .data = TestBuffer::createFromVector<bool8>({false, true, true, false}), in get_test_model_broadcast_all_inputs_as_internal() 823 .data = TestBuffer::createFromVector<bool8>({false, true, true, false}), in get_test_model_broadcast_int32() [all …]
|
D | greater.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple() 95 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple_all_inputs_as_internal() 220 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple_int32() 277 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple_float16() 334 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple_float16_all_inputs_as_internal() 459 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple_relaxed() 516 .data = TestBuffer::createFromVector<bool8>({false, false, true}), in get_test_model_simple_relaxed_all_inputs_as_internal() 641 … .data = TestBuffer::createFromVector<bool8>({false, false, false, true}), in get_test_model_broadcast() 698 … .data = TestBuffer::createFromVector<bool8>({false, false, false, true}), in get_test_model_broadcast_all_inputs_as_internal() 823 … .data = TestBuffer::createFromVector<bool8>({false, false, false, true}), in get_test_model_broadcast_int32() [all …]
|
D | less_equal.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple() 95 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple_all_inputs_as_internal() 220 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple_int32() 277 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple_float16() 334 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple_float16_all_inputs_as_internal() 459 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple_relaxed() 516 .data = TestBuffer::createFromVector<bool8>({true, true, false}), in get_test_model_simple_relaxed_all_inputs_as_internal() 641 .data = TestBuffer::createFromVector<bool8>({true, true, true, false}), in get_test_model_broadcast() 698 .data = TestBuffer::createFromVector<bool8>({true, true, true, false}), in get_test_model_broadcast_all_inputs_as_internal() 823 .data = TestBuffer::createFromVector<bool8>({true, true, true, false}), in get_test_model_broadcast_int32() [all …]
|
D | less.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple() 95 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple_all_inputs_as_internal() 220 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple_int32() 277 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple_float16() 334 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple_float16_all_inputs_as_internal() 459 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple_relaxed() 516 .data = TestBuffer::createFromVector<bool8>({true, false, false}), in get_test_model_simple_relaxed_all_inputs_as_internal() 641 … .data = TestBuffer::createFromVector<bool8>({true, false, false, false}), in get_test_model_broadcast() 698 … .data = TestBuffer::createFromVector<bool8>({true, false, false, false}), in get_test_model_broadcast_all_inputs_as_internal() 823 … .data = TestBuffer::createFromVector<bool8>({true, false, false, false}), in get_test_model_broadcast_int32() [all …]
|
D | greater_equal.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple() 95 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple_all_inputs_as_internal() 220 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple_int32() 277 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple_float16() 334 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple_float16_all_inputs_as_internal() 459 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple_relaxed() 516 .data = TestBuffer::createFromVector<bool8>({false, true, true}), in get_test_model_simple_relaxed_all_inputs_as_internal() 641 .data = TestBuffer::createFromVector<bool8>({false, true, true, true}), in get_test_model_broadcast() 698 .data = TestBuffer::createFromVector<bool8>({false, true, true, true}), in get_test_model_broadcast_all_inputs_as_internal() 823 .data = TestBuffer::createFromVector<bool8>({false, true, true, true}), in get_test_model_broadcast_int32() [all …]
|
D | not_equal.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple() 95 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple_all_inputs_as_internal() 220 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple_int32() 277 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple_float16() 334 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple_float16_all_inputs_as_internal() 459 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple_relaxed() 516 .data = TestBuffer::createFromVector<bool8>({true, false, true}), in get_test_model_simple_relaxed_all_inputs_as_internal() 641 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast() 698 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast_all_inputs_as_internal() 823 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model_broadcast_int32() [all …]
|
D | reduce_prod.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_2() 609 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_all_inputs_as_internal_2() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_relaxed_2() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_relaxed_all_inputs_as_internal_2() [all …]
|
D | reduce_sum.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_2() 609 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_all_inputs_as_internal_2() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_relaxed_2() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_relaxed_all_inputs_as_internal_2() [all …]
|
D | reduce_max.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_quant8() 609 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_quant8_all_inputs_as_internal() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_2() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_all_inputs_as_internal_2() [all …]
|
D | reduce_min.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_quant8() 609 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_quant8_all_inputs_as_internal() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_2() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_all_inputs_as_internal_2() [all …]
|
D | batch_to_space_v1_2.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_quant8() 609 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_quant8_all_inputs_as_internal() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_nchw() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_nchw_all_inputs_as_internal() [all …]
|
D | logical_not.example.cpp | 18 .data = TestBuffer::createFromVector<bool8>({true, false, false, true}), in get_test_model() 28 .data = TestBuffer::createFromVector<bool8>({false, true, true, false}), in get_test_model()
|
D | space_to_depth_v1_2.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_quant8() 609 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_quant8_all_inputs_as_internal() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_nchw() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_nchw_all_inputs_as_internal() [all …]
|
D | depth_to_space_v1_2.example.cpp | 38 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc() 105 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_all_inputs_as_internal() 206 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_relaxed() 273 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_relaxed_all_inputs_as_internal() 374 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_float16() 441 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_float16_all_inputs_as_internal() 542 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_quant8() 609 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_nhwc_quant8_all_inputs_as_internal() 710 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_nchw() 777 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_nchw_all_inputs_as_internal() [all …]
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_3/ |
D | resize_nearest_neighbor_v1_3.example.cpp | 48 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2() 58 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2() 68 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_half_pixel_centers_5x2_to_2x2() 145 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2_all_inputs_as_internal() 155 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2_all_inputs_as_internal() 165 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_half_pixel_centers_5x2_to_2x2_all_inputs_as_internal() 276 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2_float16() 286 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2_float16() 296 .data = TestBuffer::createFromVector<bool8>({true}), in get_test_model_half_pixel_centers_5x2_to_2x2_float16() 373 .data = TestBuffer::createFromVector<bool8>({false}), in get_test_model_half_pixel_centers_5x2_to_2x2_float16_all_inputs_as_internal() [all …]
|