From 6a00ed240a6351d0eabaee860c0a5c4996ac6c9a Mon Sep 17 00:00:00 2001 From: Deevashwer Date: Thu, 11 Mar 2021 03:38:15 +0530 Subject: [PATCH] [SCI] fixed bug in cleartext Maxpool --- SCI/src/functionalities_pt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCI/src/functionalities_pt.h b/SCI/src/functionalities_pt.h index 7ae53ef0..3bbe92a6 100644 --- a/SCI/src/functionalities_pt.h +++ b/SCI/src/functionalities_pt.h @@ -405,7 +405,7 @@ temp = (int64_t)0; } else { temp = inArr[n][curPosH][curPosW][c]; } -maxi = (PublicLT(maxi, temp)) ? temp : maxi; +maxi = (getSignedVal(PublicSub(maxi, temp)) < 0) ? temp : maxi; } } outArr[n][ctH][ctW][c] = maxi;