summaryrefslogtreecommitdiff
path: root/tests/tensor_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tensor_tests.rs')
-rw-r--r--tests/tensor_tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tensor_tests.rs b/tests/tensor_tests.rs
index 01f6f66c..fb2d84d9 100644
--- a/tests/tensor_tests.rs
+++ b/tests/tensor_tests.rs
@@ -2,7 +2,7 @@ use candle::{DType, Device, Result, Tensor};
#[test]
fn zeros() -> Result<()> {
- let tensor = Tensor::zeros((5, 2), DType::F32, Device::Cpu);
+ let tensor = Tensor::zeros((5, 2), DType::F32, Device::Cpu)?;
let (dim1, dim2) = tensor.shape().r2()?;
assert_eq!(dim1, 5);
assert_eq!(dim2, 2);