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 541f9c4 commit 5f7e22e
Showing 1 changed file with 4 additions and 3 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 @@ -53,9 +53,10 @@ 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);
fn softmaxWide2(z: @Tensor<FP16x16>, axis: usize) -> Tensor<FP16x16> {
// let exp_tensor: Tensor<FP16x16W> = exp_upcast(*z);
// let sum = exp_tensor.reduce_sum(axis, true);
// let softmax = exp_tensor / sum;
return exp_tensor;
// return exp_tensor;
*z
}

0 comments on commit 5f7e22e

Please sign in to comment.