From dd81e115c04e84bfc2f962dbe78d06057ce60ac8 Mon Sep 17 00:00:00 2001 From: Alexander Camuto Date: Thu, 5 Oct 2023 18:00:15 +0100 Subject: [PATCH] Update utilities.rs --- src/graph/utilities.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graph/utilities.rs b/src/graph/utilities.rs index e50e5717b..94e7ccc84 100644 --- a/src/graph/utilities.rs +++ b/src/graph/utilities.rs @@ -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]), }) } }