From d7bcda3e59b6e7cef697c7684722da71665204e0 Mon Sep 17 00:00:00 2001 From: Muthu Annamalai Date: Sat, 20 Apr 2024 21:53:40 -0700 Subject: [PATCH] Fix #1: run_test.sh failed and configparam not found in params.py --- params.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/params.py b/params.py index aefb749..c0f15f4 100644 --- a/params.py +++ b/params.py @@ -6,6 +6,19 @@ from enum import Enum from multiprocessing.sharedctypes import Value +@dataclass +class LimbsContext: + limbs : int + +class ConfigParam: + def __init__(self,**kwargs): + self.N = 2**16 + self.limbs = 47 + self.exp_img_ctxt = LimbsContext(limbs=32) + self.slot_coeff_ctxt = LimbsContext(limbs=19) + for k,v in kwargs.items(): + setattr(self,k,v) + @total_ordering class CacheStyle(Enum):