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

Upgrade the pytorch branch to 1.0, but fails while grad checking #17

Open
ayumiymk opened this issue Mar 26, 2019 · 1 comment
Open

Comments

@ayumiymk
Copy link

Thanks for sharing!

Recently, I upgrade the pytorch branch to be compatible with pytorch 1.0. When I conduct the grad check for activerotaingfilter, I failed. But the rotationinvariantencoding success. I have checked my codes many times, but still don't solve it. Do you plan to upgrade this branch to python1.0?

@ayumiymk
Copy link
Author

I think I have solved this bug. It is caused by the parallel for loop.

While using the openMP for parallel computing, this line and this line can not be parallel with the '++' operator. To fix this bug, I first compute the index, and then get the absolute address via
uint16 gradInputIndex = i * nInputPlane * + j * + l; T *val = gradInputData + gradInputIndex;

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

1 participant