/frameworks/ml/nn/runtime/test/generated/models/ |
D | pad_v2_1_float.model.cpp | 11 auto pad_value = model->addOperand(&type2); in CreateModel() local 17 model->setOperandValue(pad_value, pad_value_init, sizeof(float) * 1); in CreateModel() 18 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel() 39 auto pad_value = model->addOperand(&type6); in CreateModel_float16() local 45 model->setOperandValue(pad_value, pad_value_init, sizeof(_Float16) * 1); in CreateModel_float16() 46 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_float16() 67 auto pad_value = model->addOperand(&type2); in CreateModel_relaxed() local 73 model->setOperandValue(pad_value, pad_value_init, sizeof(float) * 1); in CreateModel_relaxed() 74 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_relaxed() 97 auto pad_value = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local [all …]
|
D | pad_v2_all_dims.model.cpp | 11 auto pad_value = model->addOperand(&type2); in CreateModel() local 17 model->setOperandValue(pad_value, pad_value_init, sizeof(float) * 1); in CreateModel() 18 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel() 39 auto pad_value = model->addOperand(&type6); in CreateModel_float16() local 45 model->setOperandValue(pad_value, pad_value_init, sizeof(_Float16) * 1); in CreateModel_float16() 46 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_float16() 67 auto pad_value = model->addOperand(&type2); in CreateModel_relaxed() local 73 model->setOperandValue(pad_value, pad_value_init, sizeof(float) * 1); in CreateModel_relaxed() 74 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_relaxed() 97 auto pad_value = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local [all …]
|
D | pad_v2_low_rank.model.cpp | 11 auto pad_value = model->addOperand(&type2); in CreateModel() local 17 model->setOperandValue(pad_value, pad_value_init, sizeof(float) * 1); in CreateModel() 18 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel() 39 auto pad_value = model->addOperand(&type6); in CreateModel_float16() local 45 model->setOperandValue(pad_value, pad_value_init, sizeof(_Float16) * 1); in CreateModel_float16() 46 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_float16() 67 auto pad_value = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 73 model->setOperandValue(pad_value, pad_value_init, sizeof(float) * 1); in CreateModel_dynamic_output_shape() 74 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_dynamic_output_shape() 95 auto pad_value = model->addOperand(&type6); in CreateModel_dynamic_output_shape_float16() local [all …]
|
D | pad_v2_low_rank_quant8.model.cpp | 11 auto pad_value = model->addOperand(&type2); in CreateModel() local 17 model->setOperandValue(pad_value, pad_value_init, sizeof(int32_t) * 1); in CreateModel() 18 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel() 39 auto pad_value = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 45 model->setOperandValue(pad_value, pad_value_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 46 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_dynamic_output_shape()
|
D | pad_v2_all_dims_quant8.model.cpp | 11 auto pad_value = model->addOperand(&type2); in CreateModel() local 17 model->setOperandValue(pad_value, pad_value_init, sizeof(int32_t) * 1); in CreateModel() 18 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel() 39 auto pad_value = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 45 model->setOperandValue(pad_value, pad_value_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 46 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_dynamic_output_shape()
|
D | pad_v2_1_quant8.model.cpp | 11 auto pad_value = model->addOperand(&type2); in CreateModel() local 17 model->setOperandValue(pad_value, pad_value_init, sizeof(int32_t) * 1); in CreateModel() 18 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel() 39 auto pad_value = model->addOperand(&type2); in CreateModel_dynamic_output_shape() local 45 model->setOperandValue(pad_value, pad_value_init, sizeof(int32_t) * 1); in CreateModel_dynamic_output_shape() 46 model->addOperation(ANEURALNETWORKS_PAD_V2, {input0, paddings, pad_value}, {output0}); in CreateModel_dynamic_output_shape()
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | pad_v2_1_quant8.mod.py | 22 pad_value = Int32Scalar("pad_value", 9) variable 25 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
D | pad_v2_low_rank_quant8.mod.py | 19 pad_value = Int32Scalar("pad_value", 9) variable 22 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
D | pad_v2_1_float.mod.py | 22 pad_value = Float32Scalar("pad_value", 9.3) variable 25 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
D | pad_v2_low_rank.mod.py | 19 pad_value = Float32Scalar("pad_value", 9.9) variable 22 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
D | pad_v2_all_dims_quant8.mod.py | 24 pad_value = Int32Scalar("pad_value", 3) variable 27 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
D | pad_v2_all_dims.mod.py | 24 pad_value = Float32Scalar("pad_value", 3.9) variable 27 model = Model().Operation("PAD_V2", input0, paddings, pad_value).To(output0)
|
/frameworks/ml/nn/common/ |
D | CpuExecutor.cpp | 1319 float pad_value = isV2 ? getScalarData<float>(mOperands[ins[2]]) : 0; in executeOperation() local 1321 reinterpret_cast<const int32_t*>(paddings.buffer), pad_value, in executeOperation() 1324 _Float16 pad_value = isV2 ? getScalarData<_Float16>(mOperands[ins[2]]) : 0; in executeOperation() local 1327 static_cast<_Float16>(pad_value), in executeOperation() 1330 uint8_t pad_value = in executeOperation() local 1333 reinterpret_cast<const int32_t*>(paddings.buffer), pad_value, in executeOperation()
|
/frameworks/ml/nn/common/include/ |
D | Operations.h | 98 bool padGeneric(const T* inputData, const Shape& inputShape, const int32_t* paddings, T pad_value,
|