Home
last modified time | relevance | path

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

12

/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/tools/test_generator/
Dexample_generator.py95 def GetSymmPerChannelQuantParams(extraParams): argument
97 if extraParams is None or extraParams.hide:
100 return {"scales": extraParams.scales, "channelDim": extraParams.channelDim}
112 "channelQuant": GetSymmPerChannelQuantParams(operand.type.extraParams),
Dtest_generator.py55 if isinstance(ty.extraParams, SymmPerChannelQuantParams):
56 v *= ty.extraParams.GetScalesBroadcastArray(ty.dimensions)
63 if isinstance(ty.extraParams, SymmPerChannelQuantParams):
64 v = v / ty.extraParams.GetScalesBroadcastArray(ty.dimensions)
159 extraParams=None): argument
165 self.extraParams = extraParams
170 def GetType(vt, dimensions, scale=0, zeroPoint=0, extraParams=None): argument
173 key = ",".join([vt, str(dimensions), str(scale), str(zeroPoint), str(extraParams)])
175 Type.typesMap[key] = Type(vt, dimensions, scale, zeroPoint, extraParams=extraParams)
185 def GetTypeFromString(vt, shape, extraParams=None): argument
[all …]
Dspec_visualizer.py84 op_info["scale"] = FormatArray(op.type.extraParams.scales)
85 op_info["channel dim"] = op.type.extraParams.channelDim
/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.java870 public static String getURL(String docid, String extraParams) { in getURL() argument
871 if (extraParams == null) { in getURL()
872 extraParams = ""; in getURL()
873 } else if (extraParams.length() > 0) { in getURL()
874 extraParams += "&"; in getURL()
876 return "http://video.google.com/videoplay?" + extraParams in getURL()
928 public static String getURL(String docid, String extraParams) { in getURL() argument
929 if (extraParams == null) { in getURL()
930 extraParams = ""; in getURL()
931 } else if (extraParams.length() > 0) { in getURL()
[all …]
/frameworks/ml/nn/common/include/
DCpuExecutor.h74 hal::OperandExtraParams extraParams; member
82 .extraParams = extraParams, in shape()
DOperationsUtils.h52 hal::OperandExtraParams extraParams; member
/frameworks/ml/nn/common/
DValidateHal.cpp116 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
120 << " has incorrect extraParams: " << toString(operand.extraParams); in validateOperandExtraParams()
123 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
127 auto& channelQuant = operand.extraParams.channelQuant(); in validateOperandExtraParams()
153 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
155 operand.extraParams.getDiscriminator() == in validateOperandExtraParams()
159 << " has incorrect extraParams: " << toString(operand.extraParams); in validateOperandExtraParams()
908 NN_RET_CHECK(operand.extraParams == operands[0].extraParams) in validateMemoryDesc()
909 << toString(operand.extraParams) << " vs " << toString(operands[0].extraParams); in validateMemoryDesc()
DCpuExecutor.cpp121 return getInputInfo(index)->extraParams; in getInputExtraParams()
173 if (info->extraParams != shape.extraParams) { in setInfoAndAllocateIfNeeded()
190 info->extraParams = shape.extraParams; in setInfoAndAllocateIfNeeded()
704 to.extraParams = from.extraParams; in initializeRunTimeInfo()
1607 filter.extraParams.channelQuant().scales.data(), in executeOperation()
1626 filter.extraParams.channelQuant().scales.data(), in executeOperation()
DMetaModel.cpp283 return compare(a.extraParams, b.extraParams); in operator ()()
DUtils.cpp266 operand->extraParams}; in getInputShape()
270 return getInputOperand(index)->extraParams; in getInputExtraParams()
280 operand->extraParams}; in getOutputShape()
709 NN_RET_CHECK(a.extraParams == b.extraParams) in compatible()
710 << toString(a.extraParams) << " != " << toString(b.extraParams); in compatible()
1760 operands[inputIndexes[1]].extraParams.channelQuant().channelDim != 0) { in validateOperation()
2894 .extraParams = operand.extraParams}; in convertToV1_2()
2915 .extraParams = operand.extraParams}; in convertToV1_3()
/frameworks/ml/nn/runtime/test/android_fuzzing/
DDriverFuzzTest.cpp94 V1_2::Operand::ExtraParams extraParams; in createSubgraph() local
96 extraParams.channelQuant(V1_2::SymmPerChannelQuantParams{ in createSubgraph()
107 .extraParams = std::move(extraParams)}; in createSubgraph()
/frameworks/ml/nn/common/operations/
DDequantize.cpp55 const int channelDim = inputShape.extraParams.channelQuant().channelDim; in computePerChannel()
70 const float scale = inputShape.extraParams.channelQuant().scales[scaleIndex]; in computePerChannel()
/frameworks/ml/nn/runtime/test/specs/V1_3/
Ddepthwise_conv2d_quant8_signed.mod.py167 extraParams = SymmPerChannelQuantParams(channelDim=3, scales=[0.5, 0.5]))
184 extraParams = SymmPerChannelQuantParams(channelDim=3, scales=[1.0, 0.5, 1.0, 0.5]))
204 extraParams = SymmPerChannelQuantParams(channelDim=3, scales=[1.0, 0.5, 1.0, 0.5]))
Dconv2d_quant8_signed.mod.py151 …[1, 2, 1, 2, 1, 2], extraParams = SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.75, 1.0]))
166 …[1, 2, 1, 2, 1, 2], extraParams = SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.75, 1.0]))
195 …[1, 2, 1, 2, 1, 2], extraParams = SymmPerChannelQuantParams(channelDim=0, scales=[0.5, 0.75, 1.0]))
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java1262 int extraParams = p.getByte(); in parseSmsStatusReport() local
1263 int moreExtraParams = extraParams; in parseSmsStatusReport()
1272 if ((extraParams & 0x78) == 0) { in parseSmsStatusReport()
1274 if ((extraParams & 0x01) != 0) { in parseSmsStatusReport()
1278 if ((extraParams & 0x02) != 0) { in parseSmsStatusReport()
1282 if ((extraParams & 0x04) != 0) { in parseSmsStatusReport()
/frameworks/ml/nn/runtime/
DMemory.cpp147 metadata.operand->extraParams == kOperand.extraParams)); in updateMetadata()
369 operand.extraParams != mOperand->extraParams) { in addRole()
427 LOG(INFO) << " Extra params: " << toString(operand.extraParams); in logMemoryDescriptorToInfo()
DModelBuilder.cpp101 .extraParams = OperandExtraParams(), in addOperand()
225 operand.extraParams.channelQuant({ in setOperandSymmPerChannelQuantParams()
269 operand.extraParams.none(); in setOperandExtensionData()
271 operand.extraParams.extension( in setOperandExtensionData()
DModelBuilder.h51 uint32_t index, const ANeuralNetworksSymmPerChannelQuantParams& extraParams);
DExecutionPlan.cpp102 fromOperand.extraParams.getDiscriminator() == in copyOperandExtraParams()
104 auto& fromChannelQuant = fromOperand.extraParams.channelQuant(); in copyOperandExtraParams()
112 fromOperand.extraParams.getDiscriminator() == in copyOperandExtraParams()
114 hidl_vec<uint8_t> extensionData = fromOperand.extraParams.extension(); in copyOperandExtraParams()
117 } else if (fromOperand.extraParams.getDiscriminator() != in copyOperandExtraParams()
122 << static_cast<int>(fromOperand.extraParams.getDiscriminator()); in copyOperandExtraParams()
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciDriver.cpp131 outputShape.extraParams.extension().data()); in execute()
/frameworks/ml/nn/extensions/
DREADME.md199 Extension operands can have associated data in `operand.extraParams.extension`,

12