Replies: 1 comment 1 reply
-
I think it's nice! FYI there is already a PR #217 for Batch Norm. Maybe you could review / collaborate on it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given that BatchNorm was already requested (#204), I was thinking of how to implement it. Here is my proposal.
We can implement generic
BatchNorm
class, receiving the number of input axes, reduction axes and num_features. It performs the normalization and keeps track of the running stats.Now, we can handle BatchNorm1d and BatchNorm2d as follows:
The following tests are passing,
Please share some thoughts. If you like the proposal, I can convert this into a PR.
Beta Was this translation helpful? Give feedback.
All reactions