-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta-BN Implementation #16
Comments
Here is a class that implements Meta-BN that is derived from the base class NormalizationLayer in https://github.com/cambridge-mlg/cnaps/blob/master/src/normalization_layers.py#L5. Apologies, somehow the code formating below is wacy. class MetaBN(NormalizationLayer):
|
Thanks! I had an issue when using this in combination with
I can get around this by deleting the batch moment attributes prior to a deepcopy, e.g.:
But this does make execution time longer. Also do you see any issues with this? |
If you delete them before the copy, you would need to add them back afterwards as these parameters hold crucial state for normalizing the target set with the statistics of the context set. |
Hi, is there a Torch implementation of Meta-BN available as introduced in https://arxiv.org/pdf/2003.03284.pdf
The text was updated successfully, but these errors were encountered: