Home
last modified time | relevance | path

Searched refs:inputs (Results 1 – 25 of 1228) sorted by relevance

12345678910>>...50

/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DConvolutions.cpp30 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 …]
DReshape.cpp30 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 …]
DSelection.cpp28 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 …]
DBoundingBox.cpp46 useNchw = op->inputs[9]->value<bool8>(); in roiConstructor()
48 useNchw = op->inputs[7]->value<bool8>(); in roiConstructor()
51 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in roiConstructor()
53 op->inputs[1]->dimensions = {RandomVariableType::FREE, 4}; in roiConstructor()
54 op->inputs[2]->dimensions = {op->inputs[1]->dimensions[0]}; in roiConstructor()
55 auto outBatch = op->inputs[1]->dimensions[0]; in roiConstructor()
56 auto outDepth = op->inputs[0]->dimensions[useNchw ? 1 : 3]; in roiConstructor()
57 auto outHeight = op->inputs[3]->value<RandomVariable>(); in roiConstructor()
58 auto outWidth = op->inputs[4]->value<RandomVariable>(); in roiConstructor()
66 setSameQuantization(op->outputs[0], op->inputs[0]); in roiConstructor()
[all …]
DResize.cpp25 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 …]
DPoolings.cpp28 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 …]
DNormalization.cpp26 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 …]
DConcatSplit.cpp26 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 …]
DFullyConnected.cpp28 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()
DReduce.cpp24 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 …]
DBroadcast.cpp27 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 …]
DElementwise.cpp41 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/
Dseed263693 inputs {
708 inputs {
719 inputs {
734 inputs {
743 inputs {
761 inputs {
771 inputs {
781 inputs {
792 inputs {
802 inputs {
[all …]
Dseed2511380 inputs {
1391 inputs {
1405 inputs {
1420 inputs {
1431 inputs {
1441 inputs {
1455 inputs {
1466 inputs {
1477 inputs {
1487 inputs {
[all …]
Dseed339406 inputs {
421 inputs {
441 inputs {
456 inputs {
475 inputs {
488 inputs {
503 inputs {
522 inputs {
538 inputs {
555 inputs {
[all …]
Dseed078933 inputs {
944 inputs {
956 inputs {
985 inputs {
994 inputs {
1005 inputs {
1034 inputs {
1044 inputs {
1055 inputs {
1067 inputs {
[all …]
Dseed1201711 inputs {
1722 inputs {
1733 inputs {
1744 inputs {
1755 inputs {
1766 inputs {
1780 inputs {
1791 inputs {
1803 inputs {
1813 inputs {
[all …]
Dseed0652386 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/
Dto_rgba.c21 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/
DNativeProgram.java98 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
DProgram.java28 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/
Dl2_normalization_v1_2.example.cpp38 .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 …]
Dcast.example.cpp38 .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/
Dhard_swish.example.cpp38 .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 …]
Drank.example.cpp38 .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 …]

12345678910>>...50