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

Disable gradient inplace and its check #693

Merged
merged 3 commits into from
Jul 29, 2020

Conversation

KazukiYoshiyama-sony
Copy link
Contributor

Disabling the gradient inplace and its check saves more memory. In the backward pass, we can usually re-use the memory region the memory manage already cached, so this change normally does not increase the total memory usage in training. Because of the no inplace check for the gradient, we can utilize the inplace-operation in the forward pass, resulting in more efficiency in memory. We verified by the regression tests in various classification/regression networks and also the utilization of the inplace-operation in the forward pass without checking the inplace in gradients in memory usage.

Format.

Disable gradinet check

Disable gradient inplace and its check

Disable gradient inplace and its check

Format
Write relu and add2 backward manually
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-op-layer Auto-release; Layer Functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants