Skip to content

Commit

Permalink
Fix test (#2806)
Browse files Browse the repository at this point in the history
### Changes

Revert some changes of the  `tests/shared/helpers.py` file

### Reason for changes
#2218


![image](https://github.com/user-attachments/assets/c2140e7a-8216-4d3f-a3e2-80ea66270e27)


### Related tickets

N/A

### Tests

N/A
  • Loading branch information
andrey-churkin authored Jul 12, 2024
1 parent 40233c0 commit d033c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/shared/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def compare_stats(expected: Dict[str, np.ndarray], actual: Dict[str, np.ndarray]
actual_stats = actual[ref_node_name]
for param_name, ref_param in ref_stats.items():
actual_param = actual_stats.get(param_name)
assert np.array(ref_param).shape == np.array(actual_param).shape
assert np.allclose(ref_param, actual_param, atol=1e-5)
assert np.array(ref_param).shape == np.array(actual_param).shape
assert np.allclose(ref_param, actual_param, atol=1e-5)


def get_python_executable_with_venv(venv_path: Path) -> str:
Expand Down

0 comments on commit d033c6a

Please sign in to comment.