apple / apple/coremltools

How to retain BN after the conv?

Open
#1,722 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
5.4k
Forks
850
Avg merge
4d 5h
Merged PRs (30d)
10

Description

In coreml export, the BN is fused into conv, is there a way to retain BN after the conv instead of fused into conv?
CoreML model:
![image](https://user-images.githubusercontent.com/54385993/211149407-3525c5eb-9762-4c5f-8317-b31dc94a4752.png)
ONNX model:
![image](https://user-images.githubusercontent.com/54385993/211149420-8ea16cf1-9a55-45dd-9f69-4c6605d8ab84.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Core ML export described in the issue and compare its graph with the linked ONNX model. Determine whether the converter exposes an option to prevent batch-normalization fusion; done means documenting or implementing a supported way to retain the BN layer and verifying the resulting model structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.