ONNX to Core ML Converter
This release includes
remove unused layer
pass to eliminate layers whose output is not being usedConv
-> Crop
-> BN
to Conv
-> BN
-> Crop
to allow Conv-BN fusionexpand_dims
being generated internally and error messagesBreaking change: converter argument target_ios
has been renamed to minimum_ios_deployment_target
, as that is more accurate description of what it represents (details here)
This release introduces support for more layers and operators which can be found here. This release adds support for new layers introduces in Core ML 3.
target_ios
to choose the Core ML spec version that is produced by the converter. target_ios='13'
will enable the converter to use all the new layers added in Core ML 3.Any questions or concerns related to this release can be submitted as an issue and will be review by the team. All comments are welcomed and will be used to improve the existing documentation.
target_ios
to choose the Core ML spec version that is produced by the converter. target_ios
= '13' will enable the converter to use all the new layers added in Core ML 3.Known Issues
Upsample
may require using custom_conversion_function
, through which value of the scale
parameter can be provided.
This is due to the fact that CoreML upsample layer supports only statically known scale factors, and in certain cases the ONNX graph has dynamic scale inputs, even though the source program (e.g. pytorch code) uses static scales.