Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Oct 22, 2023
1 parent 3b56c69 commit 5267e35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/operators/nn/functional/softmax.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ use debug::PrintTrait;
/// Cf: NNTrait::softmax docstring
fn softmaxWide2(z: @Tensor<FP16x16>, axis: usize) -> Tensor<FP16x16> {
let exp_tensor: Tensor<FP16x16W> = exp_upcast(*z);
// (*exp_tensor.data.at(0)).print();
// (*exp_tensor.data.at(1)).print();
// (*exp_tensor.data.at(2)).print();

(*(*z).data.at(0)).print();
(*(*z).data.at(1)).print();
(*(*z).data.at(2)).print();

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

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

0 comments on commit 5267e35

Please sign in to comment.