Skip to content

Commit

Permalink
Iterator callback fx signature fix (lava-nc#743)
Browse files Browse the repository at this point in the history
* update refport unittest to always wait when it writes to port for consistent behavior

Signed-off-by: bamsumit <[email protected]>

* Removed pyproject changes

Signed-off-by: bamsumit <[email protected]>

* Fix to convolution tests. Fixed imcompatible mnist_pretrained for old python versions.

Signed-off-by: bamsumit <[email protected]>

* Missing moudle parent fix

Signed-off-by: bamsumit <[email protected]>

* Added ConvVarModel

* Added iterable callback function

Signed-off-by: bamsumit <[email protected]>

* Fix codacy issues in callback_fx.py

* Fix linting in callback_fx.py

* Fix codacy sig issue in callback_fx.py

---------

Signed-off-by: bamsumit <[email protected]>
Co-authored-by: Joyesh Mishra <[email protected]>
Co-authored-by: Marcus G K Williams <[email protected]>
  • Loading branch information
3 people committed Jul 21, 2023
1 parent 9ae7fa2 commit 2eb1b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lava/magma/core/callback_fx.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def __init__(self,

def pre_run_callback(self,
board: NxBoard = None,
_var_id_to_var_model_map: dict = None
var_id_to_var_model_map: dict = None
) -> None:
for fx in self.pre_run_fxs:
fx(board)

def post_run_callback(self,
board: NxBoard = None,
_var_id_to_var_model_map: dict = None
var_id_to_var_model_map: dict = None
) -> None:
for fx in self.post_run_fxs:
fx(board)

0 comments on commit 2eb1b48

Please sign in to comment.