openharmony 鸿蒙 mindspore-lite-supported-operators

2026-08-25 浏览 (1)

MindSpore Lite Kit Operator List

This document provides the CPU backend operators supported by MindSpore Lite Kit and their mapping to ONNX Opset 18 operators. When using the model conversion tool to convert an ONNX model to an MS model for deployment, you can refer to this list for the supported ONNX operators, thereby ensuring the success of model conversion.

NOTE

  • All the following operators do not support int64 input tensors.
MindSpore Lite OperatorDescriptionONNX OperatorOperator Specifications
AbsComputes the absolute value element-wise.AbsDo not support uint8 tensors. Do not support empty input tensor quantization parameters.
ActivationComputes the activation function.Celu
Clip
Elu
Gelu
HSigmoid
LeakyRelu
PRelu
Relu
Sigmoid
SoftMax
SoftPlus
Tanh
-
AddFusionComputes element-wise addition.Add-
ArgMaxFusionComputes the maximum value along a specified dimension.ArgMaxDo not support uint8 tensors. Do not support empty input tensor quantization parameters.
AvgPoolFusionPerforms average pooling.AveragePool
GlobalAveragePool
GlobalMaxPool
MaxPool
-
BatchNormPerforms batch normalization.BatchNormalization-
BroadcastToExpands the dimensions of a tensor.Expand-
CastConverts the data type.CastDo not support the following conversions: fp32 to int8, fp32 to uint32, int32 to int8, int32 to uint32, int32 to uint8, int8 to bool, and int8 to uint8.
CeilRounds up to an integer.Ceil-
ClipLimits the element range.Clip-
ConcatConcatenates tensors.Concat-
Conv2DFusionPerforms 2D convolution.Conv-
CosComputes the cosine element-wise.Cos-
CumSumAccumulates the elements.CumSum-
DepthToSpaceRearranges data from depth into blocks of spatial data.DepthToSpaceDo not support uint8 tensors. Do not support input tensors with unknown dimensions.
DivFusionComputes element-wise division.DivDo not support division by 0.
EltwiseComputes element-wise summation.Sum-
EqualChecks whether the inputs are equal.EqualDo not support uint8 input tensors, or output of bool tensors for input int8 tensors.
ErfComputes the error function.Erf-
ExpFusionComputes the exponential element-wise.Exp-
FlattenFlattens data by dimension.FlattenDo not support uint8 tensors.
FloorRounds down to the nearest integer.Floor-
FusedBatchNormPerforms fused batch normalization.BatchNormalization-
GatherGathers elements from a tensor along a specified axis.GatherDo not support uint8 tensors. Do not support QuantType_QUANT_NONE.
GatherDGathers elements from a tensor using dynamic indices.GatherElements-
GatherNdGathers elements from a tensor using N-dimensional indices.GatherND-
InstanceNormPerforms instance normalization.InstanceNormalization-
LogComputes the natural logarithm element-wise.LogDo not support negative input tensors.
LogicalNotComputes the element-wise logical NOT.Not-
LogSoftmaxApplies Softmax followed by Log to the input tensor.LogSoftmaxDo not support inf input tensors.
LRNApplies local response normalization to reduce overfitting.LRN-
MatMulFusionPerforms matrix multiplication on two input tensors by computing the inner product using the input tensors and a set of learned weights, followed by adding a bias.Gemm
MatMul
-
MaximumComputes the element-wise maximum.Max-
MaxPoolFusionPerforms max pooling operation.GlobalMaxPool
MaxPool
-
MinimumComputes the element-wise minimum.Min-
ModComputes the element-wise modulus.Mod-
MulFusionComputes the element-wise multiplication.Mul-
NegComputes the element-wise negation.Neg-
PadFusionAdds padding to a tensor.PadDo not support int32 tensors.
PowFusionComputes the element-wise power.PowSupport only exponents that are a single constant.
PReLUFusionPerforms parametric ReLU activation.PRelu-
RangeGenerates a sequence of numbers with a specified start, end, and step.Range-
ReciprocalComputes the element-wise reciprocal.Reciprocal-
ReshapeReshapes a tensor.Reshape-
RoundRounds to the nearest integer.Round-
ScatterNdUpdateUpdates specified elements of a tensor using given indices and values.ScatterND-
ShapeObtains the shape of a tensor.Shape-
SinComputes the element-wise sine.Sin-
SizeObtains the size of a tensor.Size-
SliceFusionSlices a tensor.Slice-
SoftmaxApplies the Softmax function to normalize a tensor along a specified axis.Softmax-
SpaceToDepthRearranges blocks of spatial data into depth.SpaceToDepth-
SqrtComputes the element-wise square root.Sqrt-
SqueezeRemoves dimensions of size 1.Squeeze-
StridedSliceSlices a tensor with stride.Slice-
SubFusionComputes the element-wise subtraction.Sub-
TileFusionConstructs a tensor by replicating input tensor multiple times.TileDo not support int8 tensors.
TopKFusionObtains the top K elements from the input tensor.TopK-
TransposeTransposes a tensor.Transpose-
TrilObtains the lower triangular part of a matrix.Trilu (upper=0)-
TriuObtains the upper triangular part of a matrix.Trilu (upper=1)-
UnsqueezeInserts a new dimension into the input tensor.Unsqueeze-
WhereSelects elements based on specified conditions.Where-

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 mindspore-guidelines-based-js

openharmony 鸿蒙 mindspore-guidelines-based-native

openharmony 鸿蒙 mindspore-lite-converter-guidelines

openharmony 鸿蒙 mindspore-lite-train-guidelines

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 mindspore-lite-guidelines

openharmony 鸿蒙 mindspore-asr-based-native

openharmony 鸿蒙 MindSpore-Lite-Kit-Introduction

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/MjaZDLV3