Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring quantization passes #2544

Merged
merged 8 commits into from
Dec 12, 2023
Merged

refactoring quantization passes #2544

merged 8 commits into from
Dec 12, 2023

Conversation

umangyadav
Copy link
Member

@umangyadav umangyadav commented Dec 12, 2023

quantize_8bits_pass wasn't really using ins_names field. Removed it.

using std::set for keeping names of the operators to be quantized instead of std::vector for easy lookup.

@umangyadav umangyadav assigned CharlieL7 and umangyadav and unassigned CharlieL7 Dec 12, 2023
@umangyadav umangyadav added the simple small or simple changes label Dec 12, 2023
@@ -41,7 +41,7 @@ struct module;
*/
struct MIGRAPHX_EXPORT capture_arguments_pass
{
std::vector<std::string> ins_names = {"dot", "convolution"};
std::set<std::string> ins_names = {"dot", "convolution"};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think unordered_set would be better?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes for sure. I can make change

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@umangyadav umangyadav requested a review from pfultz2 December 12, 2023 20:30
@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (db3c07f) 91.41% compared to head (f997362) 91.42%.

❗ Current head f997362 differs from pull request most recent head d55b51b. Consider uploading reports for the commit d55b51b to get more accurate results

Files Patch % Lines
src/quantization.cpp 60.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2544   +/-   ##
========================================
  Coverage    91.41%   91.42%           
========================================
  Files          452      452           
  Lines        17153    17148    -5     
========================================
- Hits         15681    15678    -3     
+ Misses        1472     1470    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@causten causten merged commit 7e61114 into develop Dec 12, 2023
8 of 9 checks passed
@causten causten deleted the use_set branch December 12, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
simple small or simple changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants