Passing on State
to BatchNorm when it is integrated with nn.Squential
#448
Labels
feature
New feature
State
to BatchNorm when it is integrated with nn.Squential
#448
Hi,
This in continuation to the effort of bringing eqxvision up to date with changes in equinox (paganpasta/eqxvision#72).
One of the changes required now are to pass the state explicitly to the Normlayer's call.
Quite often the models are recursive collections of bunch of layers with BatchNorm integrated in them somewhere. For example,
ResNet utilises mainly 4 blocks where each block is implemented as a Sequential and within each sequential block there is a BatchNorm.
One solution I see is to either modify the
equinox.nn.Sequential
to accomodate an optional State input or simply implement a modifiedSequential
in the Eqxvision repository.@patrick-kidger, I wanted to seek your advice on the best way to go about and supporting such scenarios before making any drastic changes.
The text was updated successfully, but these errors were encountered: