Skip to content

Commit

Permalink
fix: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chachaleo committed Mar 7, 2024
1 parent 05f4c96 commit 1b8b74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/operators/nn/helpers.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ fn prod<T, MAG, +Drop<T>, +Copy<T>, +NumberTrait<T, MAG>, +TensorTrait<T>, +MulE
/// # Returns
/// * `prod` - `T`, result of the product.
fn prod_on_subset<T, MAG, +Drop<T>, +Copy<T>, +NumberTrait<T, MAG>, +TensorTrait<T>, +Mul<T>,>(
pA: Span<T>, start: usize
a: Span<T>, start: usize
) -> T {
let mut i = start;
let mut prod = NumberTrait::one();
while i != pA.len() {
prod = prod * (*pA.at(i));
while i != a.len() {
prod = prod * (*a.at(i));
i += 1;
};

Expand Down

0 comments on commit 1b8b74a

Please sign in to comment.