summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--candle-core/src/tensor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-core/src/tensor.rs b/candle-core/src/tensor.rs
index 75dc1c8a..31699288 100644
--- a/candle-core/src/tensor.rs
+++ b/candle-core/src/tensor.rs
@@ -242,7 +242,7 @@ impl Tensor {
Self::zeros_impl(shape, dtype, device, false)
}
- /// Creates a new tensor filled with ones with same shape, dtype, and device as the other
+ /// Creates a new tensor filled with zeros with same shape, dtype, and device as the other
/// tensor.
///
/// ```rust