As of #36377, min/max functions were disabled for complex inputs (via dtype checks), however, min/max kernels are still compiled and dispatched for complex, see e.g.
|
AT_DISPATCH_ALL_TYPES_AND_COMPLEX(input.scalar_type(), "min_all", [&] { |
This dispatch should be disabled, and we should rely on errors produced by dispatch macro to not run those ops on complex, instead of doing redundant dtype checks.
cc @ezyang @anjali411 @dylanbespalko @mruberry
cc @t-vi, thanks for reporting!
As of #36377, min/max functions were disabled for complex inputs (via dtype checks), however, min/max kernels are still compiled and dispatched for complex, see e.g.
pytorch/aten/src/ATen/native/cpu/ReduceAllOpsKernel.cpp
Line 77 in e44b2b7
This dispatch should be disabled, and we should rely on errors produced by dispatch macro to not run those ops on complex, instead of doing redundant dtype checks.
cc @ezyang @anjali411 @dylanbespalko @mruberry
cc @t-vi, thanks for reporting!