Skip to content
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

ResNet support #2

Open
oljike opened this issue Nov 20, 2019 · 3 comments
Open

ResNet support #2

oljike opened this issue Nov 20, 2019 · 3 comments

Comments

@oljike
Copy link

oljike commented Nov 20, 2019

Hi! My question is about computing gradients for each sample in the batch. I reproduced your example with simple neural net, which works exactly fine. However, when using ResNet50 (which has batchnorm, for example) the code produces the following error:
AttributeError: 'Parameter' object has no attribute 'grad1'

@yaroslavvb
Copy link
Collaborator

are you accessing parameter of batch norm? I haven't added per-example functionality for those layers, but will take PR

@JonMuehlst
Copy link

Could you please give more information on how to properly implement grad1 computation for batchnorm?

I found the following links useful but I'm still missing the big picture:

@meghbhalerao
Copy link

Hi @yaroslavvb , thank you very much for this package, does this package support GroupNorm, BatchNorm etc. which are commonly used in res net architectures?

Thanks again for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants