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

Detach coefficient and offset in AffineTransform #1642

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

@saitcakmak saitcakmak commented Jan 24, 2023

Summary: See #1635. These should only retain grad if learning the coefficient and while in train mode.

Differential Revision: D42700421

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Jan 24, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42700421

@codecov
Copy link

codecov bot commented Jan 24, 2023

Codecov Report

Merging #1642 (816425e) into main (72e872a) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1642   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          155       155           
  Lines        13788     13796    +8     
=========================================
+ Hits         13788     13796    +8     
Impacted Files Coverage Δ
botorch/models/transforms/input.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mrcslws
Copy link

mrcslws commented Jan 24, 2023

See #1635 (comment) for an explanation of why I think gradient information should flow through coefficient and offset during training.

…h#1642)

Summary:
Pull Request resolved: pytorch#1642

See pytorch#1635. These should only retain grad if learning the coefficient and while in train mode.

Differential Revision: D42700421

fbshipit-source-id: 907f72a6f585f55f1496e23f58bc463eac063860
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42700421

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in de31154.

@saitcakmak saitcakmak deleted the export-D42700421 branch February 7, 2023 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] AffineInputTransform causes retain_graph errors when previous transforms have parameters
3 participants