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

Validate args in HalfCauchy and HalfNormal #50492

Closed
wants to merge 2 commits into from
Closed

Conversation

fritzo
Copy link
Collaborator

@fritzo fritzo commented Jan 13, 2021

Fixes #50404
Complementary to #50403

This also fixes HalfCauchy.cdf(), HalfNormal.log_prob(), HalfNormal.cdf() and ensures validation is not done twice.

cc @feynmanliang

@fritzo fritzo added the module: distributions Related to torch.distributions label Jan 13, 2021
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jan 13, 2021

💊 CI failures summary and remediations

As of commit 814f833 (more details on the Dr. CI page):



❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_linux_xenial_cuda10_2_cudnn7_py3_gcc7_test2 (1/1)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun) ❄️

Jan 14 11:26:04 RuntimeError: CUDA error: an illegal memory access was encountered
Jan 14 11:26:04                        ~~~~ <--- HERE
Jan 14 11:26:04 RuntimeError: CUDA error: an illegal memory access was encountered
Jan 14 11:26:04 
Jan 14 11:26:04 
Jan 14 11:26:04 ======================================================================
Jan 14 11:26:04 ERROR [0.203s]: test_where_and_typing (__main__.TestTEFuser)
Jan 14 11:26:04 ----------------------------------------------------------------------
Jan 14 11:26:04 Traceback (most recent call last):
Jan 14 11:26:04   File "test_jit_fuser_te.py", line 1142, in test_where_and_typing
Jan 14 11:26:04     x = torch.randn(4, 4, dtype=torch.double, device=device)
Jan 14 11:26:04 RuntimeError: CUDA error: an illegal memory access was encountered
Jan 14 11:26:04 
Jan 14 11:26:04 ======================================================================
Jan 14 11:26:04 ERROR [0.178s]: test_zero_element_tensors_cuda (__main__.TestTEFuser)
Jan 14 11:26:04 ----------------------------------------------------------------------
Jan 14 11:26:04 Traceback (most recent call last):
Jan 14 11:26:04   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/common_utils.py", line 888, in wrapper
Jan 14 11:26:04     method(*args, **kwargs)
Jan 14 11:26:04   File "test_jit_fuser_te.py", line 178, in test_zero_element_tensors_cuda
Jan 14 11:26:04     self._test_zero_element_tensors(device="cuda")
Jan 14 11:26:04   File "test_jit_fuser_te.py", line 174, in _test_zero_element_tensors

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@neerajprad
Copy link
Contributor

I think the test should be fixed by #50403, so I'll merge this after.

@neerajprad
Copy link
Contributor

@fritzo - could you merge and push again? That should fix the failing tests.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neerajprad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@neerajprad merged this pull request in 3dcf126.

@facebook-github-bot facebook-github-bot deleted the half-validate-args branch January 27, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HalfCauchy does not respect _validate_args
4 participants