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 73e49ab commit a835f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operators/nn/functional/softmax.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ use orion::operators::tensor::{
/// Cf: NNTrait::softmax docstring
fn softmaxWide2(z: @Tensor<FP16x16>, axis: usize) -> Tensor<FP16x16W> {
let exp_tensor: Tensor<FP16x16W> = exp_upcast(*z);
let sum = exp_tensor.reduce_sum(axis, true);
// let sum = exp_tensor.reduce_sum(axis, true);
// let softmax = exp_tensor / sum;
return sum;
return exp_tensor;
}

0 comments on commit a835f73

Please sign in to comment.