Describe the bug
I am trying to bound a clamp operation. Since using torch.clamp directly produces an error stating that Cast is an unsupported operation, I instead tried torch.minimum(torch.maximum(x, mins), maxs) to replace clamp. This does not report any unsupported operations but yields nan bounds everywhere.
Hardware: CPU only (also verified on CUDA: GeForce GT 1030)
Have you tried to reproduce the problem in a cleanly created conda/virtualenv environment using official installation instructions and the latest code on the main branch?: Yes
Describe the bug I am trying to bound a
clamp
operation. Since usingtorch.clamp
directly produces an error stating thatCast
is an unsupported operation, I instead triedtorch.minimum(torch.maximum(x, mins), maxs)
to replaceclamp
. This does not report any unsupported operations but yieldsnan
bounds everywhere.To Reproduce
System configuration: