From 44700ab67b7cd03a3efb0d904367ae7047160d5b Mon Sep 17 00:00:00 2001 From: 0x73e <132935850+0x73e@users.noreply.github.com> Date: Mon, 23 Oct 2023 08:54:09 -0400 Subject: [PATCH] minor bug fix --- src/operators/nn/functional/thresholded_relu.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators/nn/functional/thresholded_relu.cairo b/src/operators/nn/functional/thresholded_relu.cairo index 1f10db96f..dd4ced172 100644 --- a/src/operators/nn/functional/thresholded_relu.cairo +++ b/src/operators/nn/functional/thresholded_relu.cairo @@ -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);