Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
juhofuriosa committed Sep 5, 2024
1 parent f5f0630 commit 7d6ac77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python-extension/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use pyo3_tch::{wrap_tch_err, PyTensor};

#[pyfunction]
fn add_one(tensor: PyTensor) -> PyResult<PyTensor> {
let tensor = tensor.f_add_scalar(1.0).map_err(wrap_tch_err)?;
let tensor = tensor.f_add_scalar(1.0, 1.0).map_err(wrap_tch_err)?;
Ok(PyTensor(tensor))
}

Expand Down

0 comments on commit 7d6ac77

Please sign in to comment.