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/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.java871 public static String getURL(String docid, String extraParams) { in getURL() argument
872 if (extraParams == null) { in getURL()
873 extraParams = ""; in getURL()
874 } else if (extraParams.length() > 0) { in getURL()
875 extraParams += "&"; in getURL()
877 return "http://video.google.com/videoplay?" + extraParams in getURL()
929 public static String getURL(String docid, String extraParams) { in getURL() argument
930 if (extraParams == null) { in getURL()
931 extraParams = ""; in getURL()
932 } 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()
909 NN_RET_CHECK(operand.extraParams == operands[0].extraParams) in validateMemoryDesc()
910 << toString(operand.extraParams) << " vs " << toString(operands[0].extraParams); in validateMemoryDesc()
DCpuExecutor.cpp119 return getInputInfo(index)->extraParams; in getInputExtraParams()
171 if (info->extraParams != shape.extraParams) { in setInfoAndAllocateIfNeeded()
188 info->extraParams = shape.extraParams; in setInfoAndAllocateIfNeeded()
702 to.extraParams = from.extraParams; in initializeRunTimeInfo()
1608 filter.extraParams.channelQuant().scales.data(), in executeOperation()
1627 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/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.java1284 int extraParams = p.getByte(); in parseSmsStatusReport() local
1285 int moreExtraParams = extraParams; in parseSmsStatusReport()
1294 if ((extraParams & 0x78) == 0) { in parseSmsStatusReport()
1296 if ((extraParams & 0x01) != 0) { in parseSmsStatusReport()
1300 if ((extraParams & 0x02) != 0) { in parseSmsStatusReport()
1304 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);
/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`,
/frameworks/ml/nn/tools/api/
Dtypes.spec68 %define otherOperandParameters extraParams