Skip to content

Commit

Permalink
Update softmax.cairo
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Oct 22, 2023
1 parent 162f528 commit febcae7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/operators/nn/functional/softmax.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ 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.len()).print();
(*exp_tensor.data.at(0)).print();
(*exp_tensor.data.at(1)).print();
(*exp_tensor.data.at(2)).print();

// let sum = exp_tensor.reduce_sum(axis, true);
// (*sum.data.at(0)).print();
Expand Down

0 comments on commit febcae7

Please sign in to comment.