-
Notifications
You must be signed in to change notification settings - Fork 33
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
autodiff_composition: Allow using torch 1.11 with python3.10 and Windows #2667
Conversation
I'm not 100% sure about the extra dimension in the <1.12.0 path, but it's enough to make the tests pass |
This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):
See CI logs for the full diff. |
@@ -4,3 +4,17 @@ | |||
__all__ = list(regressioncfa.__all__) | |||
__all__.extend(compositionrunner.__all__) | |||
__all__.extend(autodiffcomposition.__all__) | |||
|
|||
try: | |||
import torch |
Check notice
Code scanning / CodeQL
Module is imported with 'import' and 'import from'
Signed-off-by: Jan Vesely <[email protected]>
b723a4d
to
aff25fa
Compare
This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):
See CI logs for the full diff. |
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.
LGTM
This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):
See CI logs for the full diff. |
…torch<=1.11.x d6d95f3 ("Nback (PrincetonUniversity#2617)") changed the format of cross entropy target that requires torch >=1.12 1.12.0+ includes input handling path to consider inputs without batch dimension and can be used directly. [0,1,2] Fixes: d6d95f3 ("Nback (PrincetonUniversity#2617)") Closes: PrincetonUniversity#2665 [0] https://github.com/pytorch/pytorch/releases/tag/v1.12.0 [1] pytorch/pytorch#77653 [2] pytorch/pytorch@8881d7a Signed-off-by: Jan Vesely <[email protected]>
pytorch/pytorch#100690 1.11.0 also has this problem, but it was built using numpy 1.22 which is supported in PNL. Signed-off-by: Jan Vesely <[email protected]>
Assert that torch is usable if installed during testing. Signed-off-by: Jan Vesely <[email protected]>
This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):
See CI logs for the full diff. |
Block all torch wheels on windws+python3.10.
Add compatibility code path for torch <1.12.0.
Check for the availability of torch numpy bindings instead of the Python/OS version.