-
Notifications
You must be signed in to change notification settings - Fork 26.3k
add checks in autograd c++ ops for double backward without retain_variables #1293
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
Conversation
| auto BatchNormBackward::apply(const variable_list& grad_outputs) -> variable_list { | ||
| auto& input = this->input.unpack(); | ||
|
|
||
| if (!input) throw std::runtime_error("Trying to backward through the " |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
apaszke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase that commit on top of autograd?
| #ifndef PYTORCH_AUTOGRAD_ERRORS_H | ||
| #define PYTORCH_AUTOGRAD_ERRORS_H | ||
|
|
||
| #define PT_ERR_BACKWARD_TWICE "Trying to backward through the " \ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| @@ -0,0 +1,9 @@ | |||
| #ifndef PYTORCH_AUTOGRAD_ERRORS_H | |||
| #define PYTORCH_AUTOGRAD_ERRORS_H | |||
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Bumps [rocm-docs-core](https://github.com/RadeonOpenCompute/rocm-docs-core) from 1.1.1 to 1.1.2. - [Release notes](https://github.com/RadeonOpenCompute/rocm-docs-core/releases) - [Changelog](https://github.com/ROCm/rocm-docs-core/blob/develop/CHANGELOG.md) - [Commits](ROCm/rocm-docs-core@v1.1.1...v1.1.2) --- updated-dependencies: - dependency-name: rocm-docs-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fixes #1288