Skip to content

Add tests for quantization preserving handling in resource_utilization_calculator tests.#1417

Merged
elad-c merged 3 commits intomainfrom
maxcut_qp_unittest
Apr 22, 2025
Merged

Add tests for quantization preserving handling in resource_utilization_calculator tests.#1417
elad-c merged 3 commits intomainfrom
maxcut_qp_unittest

Conversation

@elad-c
Copy link
Copy Markdown
Contributor

@elad-c elad-c commented Apr 15, 2025

Pull Request Description:

Add tests for quantization preserving handling in resource_utilization_calculator tests.

Checklist before requesting a review:

  • I set the appropriate labels on the pull request.
  • I have added/updated the release note draft (if necessary).
  • I have updated the documentation to reflect my changes (if necessary).
  • All function and files are well documented.
  • All function and classes have type hints.
  • There is a licenses in all file.
  • The function and variable names are informative.
  • I have checked for code duplications.
  • I have added new unittest (if necessary).

@elad-c elad-c requested a review from ofirgo April 15, 2025 11:13
@ofirgo ofirgo requested review from irenaby and removed request for ofirgo April 15, 2025 11:26
1. remove Q8BIT
2. move retrieve_preserved_quantization_node into _get_activation_nbits
""" Basic Graph mock. """
return Mock(spec_set=Graph, nodes=[], retrieve_preserved_quantization_node=lambda x: x)
return Mock(spec_set=Graph, nodes=[],
retrieve_preserved_quantization_node=lambda x: None if x.is_quantization_preserving() else x)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should it be here and why should it return None? Why not patch it in relevant tests with relevant values?

@elad-c elad-c merged commit 3e78fce into main Apr 22, 2025
30 checks passed
@elad-c elad-c deleted the maxcut_qp_unittest branch April 22, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants