Skip to content

Commit

Permalink
Apply rustfmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Nov 26, 2024
1 parent 68c166b commit 9b95a1d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions candle-onnx/tests/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5897,7 +5897,10 @@ fn test_sign_operation() -> Result<()> {
}));

let mut inputs: HashMap<String, Tensor> = HashMap::new();
inputs.insert(INPUT_X.to_string(), Tensor::new(vec![-2f32, -1., 0., 1., 2.], &Device::Cpu)?);
inputs.insert(
INPUT_X.to_string(),
Tensor::new(vec![-2f32, -1., 0., 1., 2.], &Device::Cpu)?,
);
let eval = candle_onnx::simple_eval(&manual_graph, inputs)?;

let z = eval.get(OUTPUT_Z).expect("Output 'z' not found");
Expand All @@ -5906,4 +5909,4 @@ fn test_sign_operation() -> Result<()> {
vec![-1, -1, 0, 1, 1]
);
Ok(())
}
}

0 comments on commit 9b95a1d

Please sign in to comment.