Apply rustfmt to the newly added tests. (#1749)

This commit is contained in:
Laurent Mazare
2024-02-23 06:48:28 +01:00
committed by GitHub
parent 11ea7aac4d
commit eeb7e2b683

View File

@ -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<String, Tensor> = 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<String, Tensor> = HashMap::new();
inputs.insert(INPUT_X.to_string(), x);
@ -1334,4 +1334,4 @@ fn test_relu_operation() -> Result<()> {
// #[test]
// "Cast"
// #[test]
// #[test]