Skip to content

Commit

Permalink
clippify
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Jun 21, 2023
1 parent da5aa02 commit 256344e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/ops/einsum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ impl EinSum {
return Ok(Some((op.transpose_a, op.transpose_b, op.transpose_c)));
}
}
return Ok(None);
Ok(None)
}
}

Expand Down
2 changes: 1 addition & 1 deletion nnef/src/ops/core/einsum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn ser_einsum(ast: &mut IntoAst, node: &TypedNode) -> TractResult<Option<Arc
let inputs: Vec<_> = node.inputs.iter().map(|i| (*ast.mapping[i]).clone()).collect();
if inputs.len() == 2 {
if let Some((transpose_a, transpose_b, transpose_c)) =
einsum.as_prefixed_matmul(&ast.model, node)?
einsum.as_prefixed_matmul(ast.model, node)?
{
if transpose_c {
return Ok(Some(invocation(
Expand Down

0 comments on commit 256344e

Please sign in to comment.