From eeb7e2b683bc514440bd464f78afc43d61dfe10b Mon Sep 17 00:00:00 2001 From: Laurent Mazare Date: Fri, 23 Feb 2024 06:48:28 +0100 Subject: [PATCH] Apply rustfmt to the newly added tests. (#1749) --- candle-onnx/tests/ops.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/candle-onnx/tests/ops.rs b/candle-onnx/tests/ops.rs index 3d77071e..a686f198 100644 --- a/candle-onnx/tests/ops.rs +++ b/candle-onnx/tests/ops.rs @@ -861,11 +861,7 @@ fn test_shape_operation() -> Result<()> { sparse_initializer: vec![], quantization_annotation: vec![], })); - let x = Tensor::from_vec( - vec![1.0f32, 2.0f32, 3.0f32, 4.0f32], - &[2, 2], - &Device::Cpu, - )?; + let x = Tensor::from_vec(vec![1.0f32, 2.0f32, 3.0f32, 4.0f32], &[2, 2], &Device::Cpu)?; let mut inputs: HashMap = HashMap::new(); inputs.insert(INPUT_X.to_string(), x); @@ -1313,7 +1309,11 @@ fn test_relu_operation() -> Result<()> { sparse_initializer: vec![], quantization_annotation: vec![], })); - let x = Tensor::from_vec(vec![-1.0f32, 1.0f32, -2.0f32, 3.0f32], &[2, 2], &Device::Cpu)?; + let x = Tensor::from_vec( + vec![-1.0f32, 1.0f32, -2.0f32, 3.0f32], + &[2, 2], + &Device::Cpu, + )?; let mut inputs: HashMap = HashMap::new(); inputs.insert(INPUT_X.to_string(), x); @@ -1334,4 +1334,4 @@ fn test_relu_operation() -> Result<()> { // #[test] // "Cast" -// #[test] \ No newline at end of file +// #[test]