diff --git a/zml/tensor.zig b/zml/tensor.zig index 1a0bf91..80382a9 100644 --- a/zml/tensor.zig +++ b/zml/tensor.zig @@ -2257,7 +2257,7 @@ pub const Tensor = struct { } }.cmp, self, - Tensor.scalar(0, self.dtype()), + Tensor.constant(&.{}, self.dtype().minValue()), &.{a}, ); } @@ -2272,7 +2272,7 @@ pub const Tensor = struct { } }.cmp, self, - Tensor.scalar(0, self.dtype()), + Tensor.constant(&.{}, self.dtype().maxValue()), &.{a}, ); }