Skip to content

Commit

Permalink
fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofir Gordon authored and Ofir Gordon committed Mar 20, 2024
1 parent d011e5e commit c26e157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, layer_to_ru_mapping):
self.config_reconstruction_helper = MockReconstructionHelper()
self.non_conf_ru_dict = None

def compute_ru_matrix(self, target):
def compute_resource_utilization_matrix(self, target):
# minus 1 is normalization by the minimal resource utilization (which is always 1 in this test)
if target == RUTarget.WEIGHTS:
ru_matrix = [np.flip(np.array([ru.weights_memory - 1 for _, ru in self.layer_to_ru_mapping[0].items()]))]
Expand Down
2 changes: 1 addition & 1 deletion tests/pytorch_tests/function_tests/test_doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def test_pytorch_gptq_facade(self):
doctest.testfile("quantization_facade.py", package=gptq.pytorch, verbose=True, raise_on_error=RAISE_ON_ERROR)

def test_pytorch_resource_utilization_data_facade(self):
doctest.testfile("resource_utilization_data_test.py", package=core.pytorch, verbose=True, raise_on_error=RAISE_ON_ERROR)
doctest.testfile("resource_utilization_data.py", package=core.pytorch, verbose=True, raise_on_error=RAISE_ON_ERROR)

0 comments on commit c26e157

Please sign in to comment.