/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapperExtensions.h | 52 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/ |
D | example_generator.py | 95 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),
|
D | test_generator.py | 55 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 …]
|
D | spec_visualizer.py | 84 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/ |
D | depthwise_conv2d_per_channel.mod.py | 20 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]))
|
D | conv2d_per_channel.mod.py | 19 …[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]))
|
D | dequantize_v1_2.mod.py | 64 extraParams=SymmPerChannelQuantParams(channelDim=0, scales=[2., 0.5])), 80 extraParams=SymmPerChannelQuantParams(
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 871 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/ |
D | CpuExecutor.h | 74 hal::OperandExtraParams extraParams; member 82 .extraParams = extraParams, in shape()
|
D | OperationsUtils.h | 52 hal::OperandExtraParams extraParams; member
|
/frameworks/ml/nn/common/ |
D | ValidateHal.cpp | 116 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()
|
D | CpuExecutor.cpp | 119 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()
|
D | MetaModel.cpp | 283 return compare(a.extraParams, b.extraParams); in operator ()()
|
D | Utils.cpp | 266 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/ |
D | Dequantize.cpp | 55 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/ |
D | depthwise_conv2d_quant8_signed.mod.py | 167 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]))
|
D | conv2d_quant8_signed.mod.py | 151 …[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/ |
D | SmsMessage.java | 1284 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/ |
D | Memory.cpp | 147 metadata.operand->extraParams == kOperand.extraParams)); in updateMetadata() 369 operand.extraParams != mOperand->extraParams) { in addRole() 427 LOG(INFO) << " Extra params: " << toString(operand.extraParams); in logMemoryDescriptorToInfo()
|
D | ModelBuilder.cpp | 101 .extraParams = OperandExtraParams(), in addOperand() 225 operand.extraParams.channelQuant({ in setOperandSymmPerChannelQuantParams() 269 operand.extraParams.none(); in setOperandExtensionData() 271 operand.extraParams.extension( in setOperandExtensionData()
|
D | ModelBuilder.h | 51 uint32_t index, const ANeuralNetworksSymmPerChannelQuantParams& extraParams);
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciDriver.cpp | 131 outputShape.extraParams.extension().data()); in execute()
|
/frameworks/ml/nn/extensions/ |
D | README.md | 199 Extension operands can have associated data in `operand.extraParams.extension`,
|
/frameworks/ml/nn/tools/api/ |
D | types.spec | 68 %define otherOperandParameters extraParams
|