8000 Fix some tensor operators to return `NotImplemented` for invalid inputs by asi1024 · Pull Request #58216 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Fix some tensor operators to return NotImplemented for invalid inputs #58216

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

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Skip __rmatmul__ test_unsupported_dtypes test for bfloat16 input
  • Loading branch information
asi1024 committed May 17, 2021
commit 41af3ca1f0f451d51a65ecc6683be195e5c9b560
5 changes: 4 additions & 1 deletion torch/testing/_internal/common_methods_invocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5309,7 +5309,10 @@ def gradcheck_wrapper_triangular_input(op, input, *args, upper=False, **kwargs):
SkipInfo('TestCommon', 'test_variant_consistency_jit',),
# https://github.com/pytorch/pytorch/issues/55755
SkipInfo('TestOpInfo', 'test_unsupported_dtypes',
device_type='cpu', dtypes=(torch.float16,)),)),
device_type='cpu', dtypes=(torch.float16,)),
# https://github.com/pytorch/pytorch/pull/57934#issuecomment-840091579
SkipInfo('TestOpInfo', 'test_unsupported_dtypes',
device_type='cuda', dtypes=(torch.bfloat16,)),)),
OpInfo('__rpow__',
op=torch.Tensor.__rpow__,
dtypes=all_types_and_complex_and(torch.bfloat16, torch.half, torch.bool),
Expand Down
0