mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* Include ORT format model conversion scripts and infrastructure in ORT python package. - tweak existing script setup so it can be easily run directly and from the ORT python package Add config file and readme for Android minimal build package Update ORT Mobile doco Disable warning if 'all' optimizations are enabled but NCHWc transformer is excluded (device specific optimizations don't apply in this scenario so the warning is moot). * Address PR comments
32 lines
2.8 KiB
Text
32 lines
2.8 KiB
Text
# Android package for ORT Mobile operator and type reduction configuration
|
|
#
|
|
# The list of operators was generated from:
|
|
# - the ONNX operators use by the tf2onnx tflite converter
|
|
# - the operators used in a set of tflite models from tfhub, the tflite examples, and the mlperf mobile models
|
|
# - models were optimized with optimizations set to 'basic', 'extended' and 'all'
|
|
# - see the readme file for full details
|
|
|
|
# allow float, int8, uint8. operators that manipulate shapes or indices have int32 and int64 enabled internally.
|
|
!globally_allowed_types;float,int8_t,uint8_t
|
|
|
|
# ops used by the tf2onnx tflite converter. same list for opsets 12 and 13.
|
|
ai.onnx;12;Abs,Add,And,ArgMax,ArgMin,AveragePool,Cast,Ceil,Clip,Concat,ConstantOfShape,Conv,ConvTranspose,Cos,CumSum,DepthToSpace,DequantizeLinear,Div,DynamicQuantizeLinear,Elu,Equal,Exp,Expand,Flatten,Floor,Gather,GatherND,Gemm,Greater,GreaterOrEqual,Identity,If,LRN,LeakyRelu,Less,LessOrEqual,Log,LogSoftmax,Loop,MatMul,Max,MaxPool,Mean,Min,Mul,Neg,NonMaxSuppression,NonZero,Not,Or,PRelu,Pad,Pow,QuantizeLinear,Range,Reciprocal,ReduceMax,ReduceMean,ReduceMin,ReduceProd,ReduceSum,Relu,Reshape,Resize,ReverseSequence,Round,ScatterND,Shape,Sigmoid,Sin,Size,Slice,Softmax,SpaceToDepth,Split,Sqrt,Squeeze,Sub,Sum,Tanh,ThresholdedRelu,Tile,TopK,Transpose,Unique,Unsqueeze,Where
|
|
ai.onnx;13;Abs,Add,And,ArgMax,ArgMin,AveragePool,Cast,Ceil,Clip,Concat,ConstantOfShape,Conv,ConvTranspose,Cos,CumSum,DepthToSpace,DequantizeLinear,Div,DynamicQuantizeLinear,Elu,Equal,Exp,Expand,Flatten,Floor,Gather,GatherND,Gemm,Greater,GreaterOrEqual,Identity,If,LRN,LeakyRelu,Less,LessOrEqual,Log,LogSoftmax,Loop,MatMul,Max,MaxPool,Mean,Min,Mul,Neg,NonMaxSuppression,NonZero,Not,Or,PRelu,Pad,Pow,QuantizeLinear,Range,Reciprocal,ReduceMax,ReduceMean,ReduceMin,ReduceProd,ReduceSum,Relu,Reshape,Resize,ReverseSequence,Round,ScatterND,Shape,Sigmoid,Sin,Size,Slice,Softmax,SpaceToDepth,Split,Sqrt,Squeeze,Sub,Sum,Tanh,ThresholdedRelu,Tile,TopK,Transpose,Unique,Unsqueeze,Where
|
|
|
|
# other ops found in test models
|
|
ai.onnx;12;GlobalAveragePool,MatMulInteger,QLinearConv,QLinearMatMul
|
|
ai.onnx;13;GlobalAveragePool,MatMulInteger,QLinearConv,QLinearMatMul
|
|
|
|
# Control flow ops
|
|
# - If and Loop are covered by the tflite converter list
|
|
# - Scan tends to be used in speech models (it's more efficient than Loop) so include it for support of those
|
|
ai.onnx;12;Scan
|
|
ai.onnx;13;Scan
|
|
|
|
# internal ops added by optimizers
|
|
com.microsoft;1;DynamicQuantizeMatMul,FusedConv,FusedGemm,FusedMatMul,MatMulIntegerToFloat,NhwcMaxPool,QLinearAdd,QLinearAveragePool,QLinearConv,QLinearGlobalAveragePool,QLinearMul,QLinearSigmoid
|
|
# NHWC transformer also uses this, so assuming it's valuable enough to include
|
|
com.microsoft;1;QLinearLeakyRelu
|
|
|
|
# Quantized contrib ops that are registered but no usage was found. Excluding for now.
|
|
# com.microsoft;1;DynamicQuantizeLSTM,QAttention
|