From 2c8fbe8155197ed8e3420267c9610fef0d60d62b Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Mon, 10 Jul 2023 15:13:52 +0200 Subject: [PATCH] oops. --- candle-core/src/tensor.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/candle-core/src/tensor.rs b/candle-core/src/tensor.rs index 4a5d9d16..404e3b72 100644 --- a/candle-core/src/tensor.rs +++ b/candle-core/src/tensor.rs @@ -153,9 +153,6 @@ impl Tensor { Self::ones_impl(shape, dtype, device, false) } - // Hiding it from now, having this functions forces us to have *every* function that creates - // a new tensor potentially `_var` Maybe having something more like `Tensor::ones(..).var()` - // might be easier to check. pub fn ones_var>(shape: S, dtype: DType, device: &Device) -> Result { // Maybe we should allocate some actual storage for vars rather than just using a // broadcasted scalar?