Home
last modified time | relevance | path

Searched refs:extraParams (Results 1 – 24 of 24) sorted by relevance

/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapperExtensions.h52 ExtraParams extraParams; member
57 extraParams(other.extraParams) { in OperandType()
65 extraParams = other.extraParams;
72 ExtraParams&& extraParams = std::monostate())
73 : dimensions(std::move(d)), extraParams(std::move(extraParams)) { in dimensions()
87 OperandType(Type type, std::vector<uint32_t> dimensions, ExtraParams&& extraParams) in OperandType()
88 : OperandType(type, dimensions, 0.0f, 0, std::move(extraParams)) {} in OperandType()
120 if (std::holds_alternative<SymmPerChannelQuantParams>(type->extraParams)) { in addOperand()
121 const auto& channelQuant = std::get<SymmPerChannelQuantParams>(type->extraParams); in addOperand()
126 } else if (std::holds_alternative<ExtensionOperandParams>(type->extraParams)) { in addOperand()
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Ddepthwise_conv2d_per_channel.mod.py20 extraParams = SymmPerChannelQuantParams(channelDim=3, scales=[0.5, 0.5]))
36 extraParams = SymmPerChannelQuantParams(channelDim=3, scales=[1.0, 0.5, 1.0, 0.5]))
55 extraParams = SymmPerChannelQuantParams(channelDim=3, scales=[1.0, 0.5, 1.0, 0.5]))
Dconv2d_per_channel.mod.py19 …[1, 2, 1, 2, 1, 2], extraParams = SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.75, 1.0]))
34 …[1, 2, 1, 2, 1, 2], extraParams = SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.75, 1.0]))
63 …[1, 2, 1, 2, 1, 2], extraParams = SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.75, 1.0]))
Ddequantize_v1_2.mod.py64 extraParams=SymmPerChannelQuantParams(channelDim=0, scales=[2., 0.5])),
80 extraParams=SymmPerChannelQuantParams(
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java868 public static String getURL(String docid, String extraParams) { in getURL() argument
869 if (extraParams == null) { in getURL()
870 extraParams = ""; in getURL()
871 } else if (extraParams.length() > 0) { in getURL()
872 extraParams += "&"; in getURL()
874 return "http://video.google.com/videoplay?" + extraParams in getURL()
926 public static String getURL(String docid, String extraParams) { in getURL() argument
927 if (extraParams == null) { in getURL()
928 extraParams = ""; in getURL()
929 } else if (extraParams.length() > 0) { in getURL()
[all …]
/frameworks/ml/nn/common/include/
DCpuExecutor.h72 Operand::ExtraParams extraParams; member
80 .extraParams = extraParams, in shape()
DOperationsUtils.h50 Operand::ExtraParams extraParams; member
/frameworks/ml/nn/common/
DValidateHal.cpp88 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
92 << " has incorrect extraParams: " << toString(operand.extraParams); in validateOperandExtraParams()
95 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
99 auto& channelQuant = operand.extraParams.channelQuant(); in validateOperandExtraParams()
125 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
127 operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
131 << " has incorrect extraParams: " << toString(operand.extraParams); in validateOperandExtraParams()
DCpuExecutor.cpp110 return getInputInfo(index)->extraParams; in getInputExtraParams()
161 if (info->extraParams != shape.extraParams) { in setInfoAndAllocateIfNeeded()
178 info->extraParams = shape.extraParams; in setInfoAndAllocateIfNeeded()
584 to.extraParams = from.extraParams; in initializeRunTimeInfo()
853 filter.extraParams.channelQuant().scales.data(), in executeOperation()
1636 filter.extraParams.channelQuant().scales.data(), in executeOperation()
DUtils.cpp184 operand->extraParams}; in getInputShape()
188 return getInputOperand(index)->extraParams; in getInputExtraParams()
198 operand->extraParams}; in getOutputShape()
1615 operands[inputIndexes[1]].extraParams.channelQuant().channelDim != 0) { in validateOperation()
/frameworks/ml/nn/tools/test_generator/
Dcts_generator.py138 if t.scale == 0.0 and t.zeroPoint == 0 and t.extraParams is None:
141 if t.extraParams is None or t.extraParams.hide:
147 t.extraParams.GetConstructor())
Dvts_generator.py99 add_extra_params = o.type.extraParams is not None and not o.type.extraParams.hide
120 ep = o.type.extraParams
/frameworks/ml/nn/common/operations/
DDequantize.cpp53 const int channelDim = inputShape.extraParams.channelQuant().channelDim; in computePerChannel()
68 const float scale = inputShape.extraParams.channelQuant().scales[scaleIndex]; in computePerChannel()
/frameworks/ml/nn/runtime/test/generated/vts_models/
Ddepthwise_conv2d_per_channel.model.cpp25 .extraParams = std::move(extraParams1), in createTestModel_same()
171 .extraParams = std::move(extraParams1), in createTestModel_same_weight_as_input()
317 .extraParams = std::move(extraParams1), in createTestModel_same_dynamic_output_shape()
463 .extraParams = std::move(extraParams1), in createTestModel_same_dynamic_output_shape_weight_as_input()
609 .extraParams = std::move(extraParams1), in createTestModel_different()
755 .extraParams = std::move(extraParams1), in createTestModel_different_weight_as_input()
901 .extraParams = std::move(extraParams1), in createTestModel_different_dynamic_output_shape()
1047 .extraParams = std::move(extraParams1), in createTestModel_different_dynamic_output_shape_weight_as_input()
1193 .extraParams = std::move(extraParams1), in createTestModel_layout_nhwc()
1348 .extraParams = std::move(extraParams1), in createTestModel_layout_nhwc_weight_as_input()
[all …]
Dconv2d_per_channel.model.cpp25 .extraParams = std::move(extraParams1), in createTestModel()
162 .extraParams = std::move(extraParams1), in createTestModel_weight_as_input()
299 .extraParams = std::move(extraParams1), in createTestModel_dynamic_output_shape()
436 .extraParams = std::move(extraParams1), in createTestModel_dynamic_output_shape_weight_as_input()
573 .extraParams = std::move(extraParams1), in createTestModel_layouts_nhwc()
719 .extraParams = std::move(extraParams1), in createTestModel_layouts_nhwc_weight_as_input()
865 .extraParams = std::move(extraParams1), in createTestModel_layouts_nchw()
1011 .extraParams = std::move(extraParams1), in createTestModel_layouts_nchw_weight_as_input()
1157 .extraParams = std::move(extraParams1), in createTestModel_layouts_dynamic_output_shape_nhwc()
1303 .extraParams = std::move(extraParams1), in createTestModel_layouts_dynamic_output_shape_nhwc_weight_as_input()
[all …]
Ddequantize_v1_2.model.cpp1248 .extraParams = std::move(extraParams0), in createTestModel_5()
1302 .extraParams = std::move(extraParams0), in createTestModel_relaxed_5()
1357 .extraParams = std::move(extraParams0), in createTestModel_float16_5()
1411 .extraParams = std::move(extraParams0), in createTestModel_dynamic_output_shape_5()
1465 .extraParams = std::move(extraParams0), in createTestModel_dynamic_output_shape_relaxed_5()
1520 .extraParams = std::move(extraParams0), in createTestModel_dynamic_output_shape_float16_5()
1574 .extraParams = std::move(extraParams0), in createTestModel_6()
1628 .extraParams = std::move(extraParams0), in createTestModel_relaxed_6()
1683 .extraParams = std::move(extraParams0), in createTestModel_float16_6()
1737 .extraParams = std::move(extraParams0), in createTestModel_dynamic_output_shape_6()
[all …]
Dtranspose_conv2d_large.model.cpp150 .extraParams = std::move(extraParams1), in createTestModel_channelQuant8()
403 .extraParams = std::move(extraParams1), in createTestModel_dynamic_output_shape_channelQuant8()
Ddepthwise_conv2d_v1_2.model.cpp482 .extraParams = std::move(extraParams1), in createTestModel_nhwc_channelQuant8()
637 .extraParams = std::move(extraParams1), in createTestModel_nhwc_channelQuant8_2()
1401 .extraParams = std::move(extraParams1), in createTestModel_nhwc_weight_as_input_channelQuant8()
1556 .extraParams = std::move(extraParams1), in createTestModel_nhwc_weight_as_input_channelQuant8_2()
2320 .extraParams = std::move(extraParams1), in createTestModel_nchw_channelQuant8()
2475 .extraParams = std::move(extraParams1), in createTestModel_nchw_channelQuant8_2()
3239 .extraParams = std::move(extraParams1), in createTestModel_nchw_weight_as_input_channelQuant8()
3394 .extraParams = std::move(extraParams1), in createTestModel_nchw_weight_as_input_channelQuant8_2()
4158 .extraParams = std::move(extraParams1), in createTestModel_dynamic_output_shape_nhwc_channelQuant8()
4313 .extraParams = std::move(extraParams1), in createTestModel_dynamic_output_shape_nhwc_channelQuant8_2()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java1086 int extraParams = p.getByte(); in parseSmsStatusReport() local
1087 int moreExtraParams = extraParams; in parseSmsStatusReport()
1096 if ((extraParams & 0x78) == 0) { in parseSmsStatusReport()
1098 if ((extraParams & 0x01) != 0) { in parseSmsStatusReport()
1102 if ((extraParams & 0x02) != 0) { in parseSmsStatusReport()
1106 if ((extraParams & 0x04) != 0) { in parseSmsStatusReport()
/frameworks/ml/nn/runtime/
DModelBuilder.cpp93 .extraParams = Operand::ExtraParams(), in addOperand()
187 operand.extraParams.channelQuant({ in setOperandSymmPerChannelQuantParams()
231 operand.extraParams.none(); in setOperandExtensionData()
233 operand.extraParams.extension( in setOperandExtensionData()
DExecutionPlan.cpp181 fromOperand.extraParams.getDiscriminator() == in copyOperandExtraParams()
183 auto& fromChannelQuant = fromOperand.extraParams.channelQuant(); in copyOperandExtraParams()
191 fromOperand.extraParams.getDiscriminator() == in copyOperandExtraParams()
193 hidl_vec<uint8_t> extensionData = fromOperand.extraParams.extension(); in copyOperandExtraParams()
196 } else if (fromOperand.extraParams.getDiscriminator() != in copyOperandExtraParams()
201 << static_cast<int>(fromOperand.extraParams.getDiscriminator()); in copyOperandExtraParams()
1376 return compare(a.extraParams, b.extraParams); in initializeSlice()
DModelBuilder.h47 uint32_t index, const ANeuralNetworksSymmPerChannelQuantParams& extraParams);
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciDriver.cpp128 outputShape.extraParams.extension().data()); in execute()
/frameworks/ml/nn/extensions/
DREADME.md185 Extension operands may have associated data in `operand.extraParams.extension`,