Skip to content

Commit 13f5ceb

Browse files
committed
Fix tests
1 parent ce1869f commit 13f5ceb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests_pytest/common_tests/unit_tests/core/mixed_precision/resource_utilization_tools/test_resource_utilization_calculator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ def prepare_compute_cuts(self, graph_mock, fw_impl_mock, fw_info_mock, mocker):
472472
graph_mock.nodes = nodes
473473
# use the Graph original method (need to bind it to graph_mock instance)
474474
graph_mock.find_node_by_name = MethodType(Graph.find_node_by_name, graph_mock)
475-
graph_mock.retrieve_preserved_quantization_node = _identity_func
476475

477476
# we should not use total size, setting it to bad number
478477
cut_elems1 = MemoryElements(elements={ActivationMemoryTensor(mp_reuse.output_shape, 'mp_reuse', 0)}, total_size=-1)

tests_pytest/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def minimal_tpc():
3131
@fixture
3232
def graph_mock():
3333
""" Basic Graph mock. """
34-
return Mock(spec_set=Graph, nodes=[])
34+
return Mock(spec_set=Graph, nodes=[], retrieve_preserved_quantization_node=lambda x: x)
3535

3636

3737
@fixture

0 commit comments

Comments
 (0)