How do I add a Batch Normalization layer to my model in Flux.jl

Viewed 280

I have a simple model which I defined but I want it to use batch normalization so I don't have to calculate and provide the normalizations manually. The model currently looks like:

m = Chain(
  Dense(28^2, 64),
  Dense(64, 10),
  softmax)

How can I edit this model to add a BN layer or define a new one all together?

1 Answers
Related