/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Convolutions.cpp | 30 int32_t paddingLeft = op->inputs[3]->value<int32_t>(); in conv2DExplicitConstructor() 31 int32_t paddingRight = op->inputs[4]->value<int32_t>(); in conv2DExplicitConstructor() 32 int32_t paddingTop = op->inputs[5]->value<int32_t>(); in conv2DExplicitConstructor() 33 int32_t paddingBottom = op->inputs[6]->value<int32_t>(); in conv2DExplicitConstructor() 34 int32_t strideWidth = op->inputs[7]->value<int32_t>(); in conv2DExplicitConstructor() 35 int32_t strideHeight = op->inputs[8]->value<int32_t>(); in conv2DExplicitConstructor() 38 if (op->inputs.size() > 10) { in conv2DExplicitConstructor() 39 useNchw = op->inputs[10]->value<bool8>(); in conv2DExplicitConstructor() 40 if (op->inputs.size() > 11) { in conv2DExplicitConstructor() 41 dilationWidth = op->inputs[11]->value<int32_t>(); in conv2DExplicitConstructor() [all …]
|
D | Reshape.cpp | 30 if (op->inputs.size() > 2) useNchw = op->inputs[2]->value<bool8>(); in spaceToDepthConstructor() 35 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in spaceToDepthConstructor() 37 int32_t blockSize = op->inputs[1]->value<int32_t>(); in spaceToDepthConstructor() 38 auto outHeight = op->inputs[0]->dimensions[heightIndex].exactDiv(blockSize); in spaceToDepthConstructor() 39 auto outWidth = op->inputs[0]->dimensions[widthIndex].exactDiv(blockSize); in spaceToDepthConstructor() 40 auto outDepth = op->inputs[0]->dimensions[depthIndex] * (blockSize * blockSize); in spaceToDepthConstructor() 43 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outDepth, outHeight, outWidth}; in spaceToDepthConstructor() 45 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outHeight, outWidth, outDepth}; in spaceToDepthConstructor() 47 setSameQuantization(op->outputs[0], op->inputs[0]); in spaceToDepthConstructor() 56 .inputs = {INPUT_DEFAULT, PARAMETER_RANGE(TestOperandType::INT32, 1, 5)}, \ [all …]
|
D | Selection.cpp | 28 setFreeDimensions(op->inputs[0], /*rank=*/1); in embeddingLookupConstructor() 29 setFreeDimensions(op->inputs[1], rank); in embeddingLookupConstructor() 31 op->outputs[0]->dimensions[0] = op->inputs[0]->dimensions[0]; in embeddingLookupConstructor() 33 op->outputs[0]->dimensions[i] = op->inputs[1]->dimensions[i]; in embeddingLookupConstructor() 35 setSameQuantization(op->outputs[0], op->inputs[1]); in embeddingLookupConstructor() 39 uint32_t dimValue = op->inputs[1]->dimensions[0].getValue(); in embeddingLookupFinalizer() 40 uint32_t numElements = op->inputs[0]->getNumberOfElements(); in embeddingLookupFinalizer() 43 op->inputs[0]->value<int32_t>(i) = getUniform<int32_t>(0, dimValue - 1); in embeddingLookupFinalizer() 53 .inputs = {PARAMETER_NONE(TestOperandType::TENSOR_INT32), INPUT_DEFAULT}, \ 65 op->inputs[0]->dimensions = {RandomVariableType::FREE}; in hashtableLookupConstructor() [all …]
|
D | Resize.cpp | 25 setFreeDimensions(op->inputs[0], rank); in resizeOpConstructor() 27 bool useNchw = op->inputs.size() > 3 ? static_cast<bool>(op->inputs[3]->value<bool8>()) : false; in resizeOpConstructor() 33 switch (op->inputs[1]->dataType) { in resizeOpConstructor() 36 outWidth = op->inputs[1]->value<RandomVariable>(); in resizeOpConstructor() 37 outHeight = op->inputs[2]->value<RandomVariable>(); in resizeOpConstructor() 41 outWidth = op->inputs[0]->dimensions[widthIndex] * op->inputs[1]->value<float>(); in resizeOpConstructor() 42 outHeight = op->inputs[0]->dimensions[heightIndex] * op->inputs[2]->value<float>(); in resizeOpConstructor() 45 outWidth = op->inputs[0]->dimensions[widthIndex] * in resizeOpConstructor() 46 static_cast<float>(op->inputs[1]->value<_Float16>()); in resizeOpConstructor() 47 outHeight = op->inputs[0]->dimensions[heightIndex] * in resizeOpConstructor() [all …]
|
D | BoundingBox.cpp | 44 useNchw = op->inputs[9]->value<bool8>(); in roiConstructor() 46 useNchw = op->inputs[7]->value<bool8>(); in roiConstructor() 49 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in roiConstructor() 51 op->inputs[1]->dimensions = {RandomVariableType::FREE, 4}; in roiConstructor() 52 op->inputs[2]->dimensions = {op->inputs[1]->dimensions[0]}; in roiConstructor() 53 auto outBatch = op->inputs[1]->dimensions[0]; in roiConstructor() 54 auto outDepth = op->inputs[0]->dimensions[useNchw ? 1 : 3]; in roiConstructor() 55 auto outHeight = op->inputs[3]->value<RandomVariable>(); in roiConstructor() 56 auto outWidth = op->inputs[4]->value<RandomVariable>(); in roiConstructor() 64 setSameQuantization(op->outputs[0], op->inputs[0]); in roiConstructor() [all …]
|
D | Poolings.cpp | 28 int32_t paddingLeft = op->inputs[1]->value<int32_t>(); in poolingExplicitOpConstructor() 29 int32_t paddingRight = op->inputs[2]->value<int32_t>(); in poolingExplicitOpConstructor() 30 int32_t paddingTop = op->inputs[3]->value<int32_t>(); in poolingExplicitOpConstructor() 31 int32_t paddingBottom = op->inputs[4]->value<int32_t>(); in poolingExplicitOpConstructor() 32 int32_t strideWidth = op->inputs[5]->value<int32_t>(); in poolingExplicitOpConstructor() 33 int32_t strideHeight = op->inputs[6]->value<int32_t>(); in poolingExplicitOpConstructor() 34 auto filterWidth = op->inputs[7]->value<RandomVariable>(); in poolingExplicitOpConstructor() 35 auto filterHeight = op->inputs[8]->value<RandomVariable>(); in poolingExplicitOpConstructor() 37 if (op->inputs.size() > 10) useNchw = op->inputs[10]->value<bool8>(); in poolingExplicitOpConstructor() 43 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in poolingExplicitOpConstructor() [all …]
|
D | Normalization.cpp | 26 if (op->inputs.size() > 2) { in softmaxConstructor() 27 op->inputs[2]->setScalarValue<int32_t>(getUniform<int32_t>(-rank, rank - 1)); in softmaxConstructor() 37 .inputs = {INPUT_DEFAULT, PARAMETER_FLOAT_RANGE(0.1, 10.0)}, in DEFINE_OPERATION_SIGNATURE() 47 .inputs = {INPUT_DEFAULT, PARAMETER_FLOAT_RANGE(0.1, 10.0)}, in DEFINE_OPERATION_SIGNATURE() 56 .inputs = {INPUT_DEFAULT, PARAMETER_FLOAT_RANGE(0.1, 10.0)}, in DEFINE_OPERATION_SIGNATURE() 67 .inputs = {INPUT_DEFAULT, PARAMETER_FLOAT_RANGE(0.1, 10.0), in DEFINE_OPERATION_SIGNATURE() 77 .inputs = {INPUT_DEFAULT, PARAMETER_FLOAT_RANGE(0.1, 10.0)}, in DEFINE_OPERATION_SIGNATURE() 86 .inputs = {INPUT_DEFAULT, PARAMETER_FLOAT_RANGE(0.1, 10.0), in DEFINE_OPERATION_SIGNATURE() 94 if (op->inputs.size() > 1) { in l2normConstructor() 95 op->inputs[1]->setScalarValue<int32_t>(getUniform<int32_t>(-rank, rank - 1)); in l2normConstructor() [all …]
|
D | ConcatSplit.cpp | 26 op->inputs[i]->dimensions.resize(rank); in concatConstructor() 27 if (isV1_0) setSameQuantization(op->inputs[i], op->inputs[0]); in concatConstructor() 32 op->inputs[numInputs]->setScalarValue<int32_t>(axis); in concatConstructor() 34 op->inputs[0]->dimensions[i] = RandomVariableType::FREE; in concatConstructor() 35 op->outputs[0]->dimensions[i] = op->inputs[0]->dimensions[i]; in concatConstructor() 38 op->inputs[j]->dimensions[i] = RandomVariableType::FREE; in concatConstructor() 40 op->outputs[0]->dimensions[i] + op->inputs[j]->dimensions[i]; in concatConstructor() 42 op->inputs[j]->dimensions[i] = op->inputs[0]->dimensions[i]; in concatConstructor() 54 .inputs = {INPUT_DEFAULT, INPUT_DEFAULT, PARAMETER_NONE(TestOperandType::INT32)}, in DEFINE_OPERATION_SIGNATURE() 66 .inputs = {INPUT_DEFAULT, INPUT_DEFAULT, INPUT_DEFAULT, in DEFINE_OPERATION_SIGNATURE() [all …]
|
D | FullyConnected.cpp | 28 op->inputs[0]->dimensions.resize(rank); in fullyConnectedConstructor() 31 op->inputs[0]->dimensions[i] = RandomVariableType::FREE; in fullyConnectedConstructor() 32 numElements = numElements * op->inputs[0]->dimensions[i]; in fullyConnectedConstructor() 36 op->inputs[1]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE}; in fullyConnectedConstructor() 39 op->inputs[2]->dimensions = {op->inputs[1]->dimensions[0]}; in fullyConnectedConstructor() 42 op->outputs[0]->dimensions = {numElements.exactDiv(op->inputs[1]->dimensions[1]), in fullyConnectedConstructor() 43 op->inputs[1]->dimensions[0]}; in fullyConnectedConstructor() 54 .inputs = {INPUT_DEFAULT, INPUT_DEFAULT, INPUT_BIAS, in DEFINE_OPERATION_SIGNATURE() 65 .inputs = {INPUT_DEFAULT, INPUT_DEFAULT, INPUT_BIAS, in DEFINE_OPERATION_SIGNATURE() 75 .inputs = {INPUT_DEFAULT, INPUT_DEFAULT, INPUT_BIAS, in DEFINE_OPERATION_SIGNATURE()
|
D | Reduce.cpp | 24 setFreeDimensions(op->inputs[0], rank); in reduceOpConstructor() 31 op->inputs[1]->dimensions = {numAxis}; in reduceOpConstructor() 32 op->inputs[1]->resizeBuffer<int32_t>(numAxis); in reduceOpConstructor() 35 op->inputs[1]->value<int32_t>(i) = dim; in reduceOpConstructor() 41 if (op->inputs[2]->dataType == TestOperandType::BOOL) { in reduceOpConstructor() 42 keepDims = op->inputs[2]->value<bool8>(); in reduceOpConstructor() 44 keepDims = op->inputs[2]->value<int32_t>() > 0; in reduceOpConstructor() 49 op->outputs[0]->dimensions.emplace_back(op->inputs[0]->dimensions[i]); in reduceOpConstructor() 54 setSameQuantization(op->outputs[0], op->inputs[0]); in reduceOpConstructor() 69 .inputs = {INPUT_DEFAULT, PARAMETER_NONE(TestOperandType::TENSOR_INT32), \ [all …]
|
D | Broadcast.cpp | 27 op->inputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 28 op->inputs[1]->dimensions.resize(rank2); in broadcastOpConstructor() 33 op->inputs[0]->dimensions[i] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 37 op->inputs[0]->dimensions[i] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 38 op->inputs[1]->dimensions[i - rankDiff] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 41 op->inputs[0]->dimensions[i] = 1; in broadcastOpConstructor() 42 op->inputs[1]->dimensions[i - rankDiff] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 45 op->inputs[0]->dimensions[i] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 46 op->inputs[1]->dimensions[i - rankDiff] = 1; in broadcastOpConstructor() 52 op->inputs[0]->dimensions.swap(op->inputs[1]->dimensions); in broadcastOpConstructor() [all …]
|
D | Elementwise.cpp | 41 op->inputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 44 op->inputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 48 op->inputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 61 .inputs = {INPUT_DEFAULT}, \ 89 .inputs = {INPUT_DEFAULT}, \ 118 .inputs = {INPUT_DEFAULT}, \ 139 if (op->inputs[0]->dataType == TestOperandType::TENSOR_FLOAT16) { in castingOpConstructor() 142 op->inputs[0]->scale = static_cast<_Float16>(op->inputs[0]->scale); in castingOpConstructor() 153 .inputs = {INPUT_DEFAULT}, \ 186 .inputs = {INPUT_DEFAULT}, \ [all …]
|
/frameworks/ml/nn/runtime/test/android_fuzzing/corpus/ |
D | seed263 | 693 inputs { 708 inputs { 719 inputs { 734 inputs { 743 inputs { 761 inputs { 771 inputs { 781 inputs { 792 inputs { 802 inputs { [all …]
|
D | seed251 | 1380 inputs { 1391 inputs { 1405 inputs { 1420 inputs { 1431 inputs { 1441 inputs { 1455 inputs { 1466 inputs { 1477 inputs { 1487 inputs { [all …]
|
D | seed339 | 406 inputs { 421 inputs { 441 inputs { 456 inputs { 475 inputs { 488 inputs { 503 inputs { 522 inputs { 538 inputs { 555 inputs { [all …]
|
D | seed078 | 933 inputs { 944 inputs { 956 inputs { 985 inputs { 994 inputs { 1005 inputs { 1034 inputs { 1044 inputs { 1055 inputs { 1067 inputs { [all …]
|
D | seed120 | 1711 inputs { 1722 inputs { 1733 inputs { 1744 inputs { 1755 inputs { 1766 inputs { 1780 inputs { 1791 inputs { 1803 inputs { 1813 inputs { [all …]
|
D | seed065 | 2386 inputs { 2408 inputs { 2424 inputs { 2434 inputs { 2449 inputs { 2464 inputs { 2479 inputs { 2501 inputs { 2515 inputs { 2530 inputs { [all …]
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
D | to_rgba.c | 21 int gray_to_rgb_process(const char** inputs, in gray_to_rgb_process() argument 36 const char* input_ptr = inputs[0]; in gray_to_rgb_process() 52 int rgba_to_rgb_process(const char** inputs, in rgba_to_rgb_process() argument 67 const char* input_ptr = inputs[0]; in rgba_to_rgb_process() 84 int gray_to_rgba_process(const char** inputs, in gray_to_rgba_process() argument 99 const char* input_ptr = inputs[0]; in gray_to_rgba_process() 116 int rgb_to_rgba_process(const char** inputs, in rgb_to_rgba_process() argument 131 const char* input_ptr = inputs[0]; in rgb_to_rgba_process()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | NativeProgram.java | 98 public void process(Frame[] inputs, Frame output) { in process() argument 102 NativeFrame[] nativeInputs = new NativeFrame[inputs.length]; in process() 103 for (int i = 0; i < inputs.length; ++i) { in process() 104 if (inputs[i] == null || inputs[i] instanceof NativeFrame) { in process() 105 nativeInputs[i] = (NativeFrame)inputs[i]; in process() 173 private native boolean callNativeProcess(NativeFrame[] inputs, NativeFrame output); in callNativeProcess() argument
|
D | Program.java | 28 public abstract void process(Frame[] inputs, Frame output); in process() argument 32 Frame[] inputs = new Frame[1]; in process() local 33 inputs[0] = input; in process() 34 process(inputs, output); in process()
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/ |
D | l2_normalization_v1_2.example.cpp | 38 .inputs = {0}, in get_test_model_dim4_axis3() 115 .inputs = {2, 3, 4}, in get_test_model_dim4_axis3_all_inputs_as_internal() 119 .inputs = {0}, in get_test_model_dim4_axis3_all_inputs_as_internal() 166 .inputs = {0}, in get_test_model_dim4_axis3_relaxed() 243 .inputs = {2, 3, 4}, in get_test_model_dim4_axis3_relaxed_all_inputs_as_internal() 247 .inputs = {0}, in get_test_model_dim4_axis3_relaxed_all_inputs_as_internal() 294 .inputs = {0}, in get_test_model_dim4_axis3_float16() 371 .inputs = {2, 3, 4}, in get_test_model_dim4_axis3_float16_all_inputs_as_internal() 375 .inputs = {0}, in get_test_model_dim4_axis3_float16_all_inputs_as_internal() 422 .inputs = {0}, in get_test_model_dim4_axis3_quant8() [all …]
|
D | cast.example.cpp | 38 .inputs = {0}, in get_test_model_float16_to_float16() 115 .inputs = {2, 3, 4}, in get_test_model_float16_to_float16_all_inputs_as_internal() 119 .inputs = {0}, in get_test_model_float16_to_float16_all_inputs_as_internal() 166 .inputs = {0}, in get_test_model_float16_to_float32() 243 .inputs = {2, 3, 4}, in get_test_model_float16_to_float32_all_inputs_as_internal() 247 .inputs = {0}, in get_test_model_float16_to_float32_all_inputs_as_internal() 294 .inputs = {0}, in get_test_model_float16_to_float32_relaxed() 371 .inputs = {2, 3, 4}, in get_test_model_float16_to_float32_relaxed_all_inputs_as_internal() 375 .inputs = {0}, in get_test_model_float16_to_float32_relaxed_all_inputs_as_internal() 422 .inputs = {0}, in get_test_model_float16_to_int32() [all …]
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_3/ |
D | rank.example.cpp | 38 .inputs = {0}, in get_test_model_1d() 115 .inputs = {2, 3, 4}, in get_test_model_1d_all_inputs_as_internal() 119 .inputs = {0}, in get_test_model_1d_all_inputs_as_internal() 166 .inputs = {0}, in get_test_model_1d_int32() 213 .inputs = {0}, in get_test_model_1d_float16() 290 .inputs = {2, 3, 4}, in get_test_model_1d_float16_all_inputs_as_internal() 294 .inputs = {0}, in get_test_model_1d_float16_all_inputs_as_internal() 341 .inputs = {0}, in get_test_model_1d_quant8() 418 .inputs = {2, 3, 4}, in get_test_model_1d_quant8_all_inputs_as_internal() 422 .inputs = {0}, in get_test_model_1d_quant8_all_inputs_as_internal() [all …]
|
D | hard_swish.example.cpp | 38 .inputs = {0}, in get_test_model_simple() 115 .inputs = {2, 3, 4}, in get_test_model_simple_all_inputs_as_internal() 119 .inputs = {0}, in get_test_model_simple_all_inputs_as_internal() 166 .inputs = {0}, in get_test_model_simple_float16() 243 .inputs = {2, 3, 4}, in get_test_model_simple_float16_all_inputs_as_internal() 247 .inputs = {0}, in get_test_model_simple_float16_all_inputs_as_internal() 294 .inputs = {0}, in get_test_model_simple_relaxed() 371 .inputs = {2, 3, 4}, in get_test_model_simple_relaxed_all_inputs_as_internal() 375 .inputs = {0}, in get_test_model_simple_relaxed_all_inputs_as_internal() 422 .inputs = {0}, in get_test_model_simple_quant8() [all …]
|