Skip to content

Commit

Permalink
Update utilities.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Oct 5, 2023
1 parent 87a03b0 commit dd81e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graph/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ pub fn new_op_from_onnx(
inputs[const_idx].decrement_const();
deleted_indices.push(const_idx);
op = SupportedOp::Nonlinear(LookupOp::Div {
denom: crate::circuit::utils::F32(c.raw_values[0]),
// we invert the constant for division
denom: crate::circuit::utils::F32(1. / c.raw_values[0]),
})
}
}
Expand Down

0 comments on commit dd81e11

Please sign in to comment.