You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let x:Tensor<Autodiff<NdArray>,1> = Tensor::from_floats([f32::NEG_INFINITY],&Default::default()).clamp_min(-1e8);assert!(x.into_scalar() >= -1e8);
currently panics (even though it clearly should not). Note that this does work correctly when Autodiff<NdArray> is replaced by either Autodiff<Wgpu> or by just NdArray.
I would expect clamp and clamp_max to have similar issues, but I have not tested it.
The text was updated successfully, but these errors were encountered:
The following code
currently panics (even though it clearly should not). Note that this does work correctly when
Autodiff<NdArray>
is replaced by eitherAutodiff<Wgpu>
or by justNdArray
.I would expect
clamp
andclamp_max
to have similar issues, but I have not tested it.The text was updated successfully, but these errors were encountered: