Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
reset dict
Signed-off-by: yiliu30 <[email protected]>
  • Loading branch information
yiliu30 committed Jun 18, 2024
commit fddaa7aa0ac22e3bea9158b7bed63caab4464849
3 changes: 3 additions & 0 deletions test/3x/common/test_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def __init__(self):

class TestCallCounter(unittest.TestCase):
def test_call_counter(self):
# empty dict
inc_utils.FUNC_CALL_COUNTS.clear()

@inc_utils.call_counter
def add(a, b):
return a + b
Expand Down
2 changes: 2 additions & 0 deletions test/3x/torch/test_autotune.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def eval_acc_fn(model) -> float:
self.assertIsNotNone(best_model)

def test_autotune_return_qmodel_directly(self):
inc_utils.FUNC_CALL_COUNTS.clear()

baseline = 1
eval_result = [0.9, 1.1]
Expand All @@ -185,6 +186,7 @@ def eval_acc_fn(model) -> float:
self.assertIsNotNone(best_model)

def test_autotune_return_re_quant_qmodel(self):
inc_utils.FUNC_CALL_COUNTS.clear()

baseline = 1
eval_result = [0.9, 0.8]
Expand Down