Is there a specific reason the computeMeanVar and instanceNormalization parameters were removed from the add_batchnorm method of the NeuralNetworkBuilder in the coremltools 0.4.0? I used them before in 0.3.0 and they seemed to work just fine.
When migrating to 0.4.0 I added my own helper method for creating instance normalization layers and that seem to work as before.
On a related note: it's a bit tedious that you have to provide (dummy) mean and variance values when setting computeMeanVar to True, even though they are not used.