Skip to content

Commit

Permalink
debbug
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Oct 22, 2023
1 parent 214a95f commit 6a82ce9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn eq(a: @FP16x16W, b: @FP16x16W) -> bool {

// Calculates the natural exponent of x: e^x
fn exp(a: FP16x16W) -> FP16x16W {
a.sign.print();
// a.sign.print();
return exp2(FixedTrait::new(94548, false) * a); // log2(e) * 2^23 ≈ 12102203
}

Expand Down
2 changes: 2 additions & 0 deletions src/operators/tensor/math/exp.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ fn exp_upcast<
loop {
match self.data.pop_front() {
Option::Some(item) => {
(TIntoW::into(*item)).print();

result.append((TIntoW::into(*item)).exp());
},
Option::None(_) => {
Expand Down

0 comments on commit 6a82ce9

Please sign in to comment.