Fix for rustfmt. (#2117)

This commit is contained in:
Laurent Mazare
2024-04-23 19:09:33 +02:00
committed by GitHub
parent 6fadaf2eff
commit 7211009179

View File

@ -258,11 +258,7 @@ fn test_exp_operation() -> Result<()> {
quantization_annotation: vec![],
}));
let x = Tensor::from_vec(
vec![-1.0f32, 0.0f32, 1.0f32, 2.0f32],
&[2, 2],
&Device::Cpu,
)?;
let x = Tensor::from_vec(vec![-1.0f32, 0.0f32, 1.0f32, 2.0f32], &[2, 2], &Device::Cpu)?;
let mut inputs: HashMap<String, Tensor> = HashMap::new();
inputs.insert(INPUT_X.to_string(), x);