Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0x73e committed Oct 23, 2023
1 parent 19266ef commit 44700ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/nn/functional/thresholded_relu.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn thresholded_relu<
loop {
match z.data.pop_front() {
Option::Some(item) => {
if (*item) < (*alpha) {
if (*item) <= (*alpha) {
data_result.append(NumberTrait::zero());
} else {
data_result.append(*item);
Expand Down

0 comments on commit 44700ab

Please sign in to comment.