The gradient flow should be the same and I was only referring to the updates of the internal batchnorm statistics.
The additional operation using the importance_map might of course change the performance of the model.
If I understand the use case correctly, you are using this attention op in the second approach, but not in the first one?