mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 11:56:45 +00:00
Fix for rustfmt. (#2117)
This commit is contained in:
@ -258,11 +258,7 @@ fn test_exp_operation() -> Result<()> {
|
|||||||
quantization_annotation: vec![],
|
quantization_annotation: vec![],
|
||||||
}));
|
}));
|
||||||
|
|
||||||
let x = Tensor::from_vec(
|
let x = Tensor::from_vec(vec![-1.0f32, 0.0f32, 1.0f32, 2.0f32], &[2, 2], &Device::Cpu)?;
|
||||||
vec![-1.0f32, 0.0f32, 1.0f32, 2.0f32],
|
|
||||||
&[2, 2],
|
|
||||||
&Device::Cpu,
|
|
||||||
)?;
|
|
||||||
|
|
||||||
let mut inputs: HashMap<String, Tensor> = HashMap::new();
|
let mut inputs: HashMap<String, Tensor> = HashMap::new();
|
||||||
inputs.insert(INPUT_X.to_string(), x);
|
inputs.insert(INPUT_X.to_string(), x);
|
||||||
|
Reference in New Issue
Block a user