8000 Fix test_parity xfail for sigmoid · pytorch/pytorch@9afd6c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9afd6c7

Browse files
Fix test_parity xfail for sigmoid
ghstack-source-id: 7090566 Pull Request resolved: #134253
1 parent 3c0147e commit 9afd6c7

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

aten/src/ATen/native/cuda/ForeachUnaryOp.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ struct Sign {
304304
}
305305
};
306306

307-
OP_CUSTOM_FUNCTOR(floating_half_bfloat16, sigmoid, Sigmoid)
307+
OP_CUSTOM_FUNCTOR(floating_complex_half_bfloat16, sigmoid, Sigmoid)
308308
OP_CUSTOM_FUNCTOR(floating_half_bfloat16, round, Round)
309309
OP_CUSTOM_FUNCTOR(floating_half_bfloat16, frac, Trunc)
310310
OP_CUSTOM_FUNCTOR(floating_complex_half_bfloat16, reciprocal, Reciprocal)

torch/testing/_internal/common_methods_invocations.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10578,16 +10578,6 @@ def __call__(self, opinfo, device, dtype, requires_grad, **kwargs):
1057810578
device_type="cuda",
1057910579
dtypes=complex_types(),
1058010580
),
10581-
# FIXME: the fast path for CUDA sigmoid is either unimplemented or
10582-
# inaccessible. The slow path exists, so this is probably an error?
10583-
DecorateInfo(
10584-
unittest.expectedFailure,
10585-
"TestForeach",
10586-
"test_parity",
10587-
device_type="cuda",
10588-
dtypes=complex_types(),
10589-
active_if=lambda kwargs: not kwargs.get("noncontiguous", False),
10590-
),
1059110581
DecorateInfo(
1059210582
unittest.expectedFailure,
1059310583
"TestForeach",

0 commit comments

Comments
 (0)
0