MegEngine到其他框架的转换器
--optimize-for-inference
选项支持dump mge模型时进行优化--frozen_input_shape
支持使用onnxsim来固定shape,以优化当前shape的模型--use_int64_bias
选项支持MatMul、Conv2d、DeConv2d的bias使用int64maximum recursion depth exceeded
的问题GetSubtensor
的参数start/end/step tensor 和Squeeze
的参数squeeze_ndim 从 nchw 转成 nhwc 的问题GetSubtensor
squeeze_axis 为空时不再添加SqueezeOprFlatten(Linear)
后 Linear 的权重没转到 nhwc 的bugremove_relu
选项去除relu算子prefer_same_pad_mode
选项支持为Conv或Pooling pad时优先使用SAME
的pad modepixelshuffle
(upsample/downsample)转到tflite的DepthToSpace
、SpaceToDepth
算子SoftmaxForward
算子的转换all
选项安装所有转换器all
选项proto
版本numpy.dtype
mgeconvert 是高效的三方库转换框架,当前版本支持mge 转换 onnx ,caffe ,tflite 等多平台的转换。由其算子力度较细的特性,可支持转换反向算子
尝鲜体验通道如下,请参考 安装指南
python3 -m pip install git+https://github.com/MegEngine/[email protected]