-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[IR2Vec] Exposing Embedding as an data type wrapped around std::vector<double> #143197
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@llvm/pr-subscribers-llvm-analysis Author: S. VenkataKeerthy (svkeerthy) ChangesCurrently Full diff: https://github.com/llvm/llvm-project/pull/143197.diff 3 Files Affected:
|
@llvm/pr-subscribers-mlgo Author: S. VenkataKeerthy (svkeerthy) ChangesCurrently Full diff: https://github.com/llvm/llvm-project/pull/143197.diff 3 Files Affected:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall nice cleanup, I think the inheritance is to be avoided though.
8e5c13a
to
602c2d3
Compare
602c2d3
to
6817aa9
Compare
ADT has a well defined meaning in LLVM. On reading the title I expected something new to be added to llvm/ADT but this is local to IR2Vec. Can you drop the usage of ADT in the title and code? |
9c05884
to
dfe59f2
Compare
Okay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
dfe59f2
to
7a33ef8
Compare
Merge activity
|
…r<double> (llvm#143197) Currently `Embedding` is `std::vector<double>`. This PR makes it a data type wrapped around `std::vector<double>` to overload basic arithmetic operators and expose comparison operations. It _simplifies_ the usage here and in the passes where operations on `Embedding` would be performed. (Tracking issue - llvm#141817)
…r<double> (llvm#143197) Currently `Embedding` is `std::vector<double>`. This PR makes it a data type wrapped around `std::vector<double>` to overload basic arithmetic operators and expose comparison operations. It _simplifies_ the usage here and in the passes where operations on `Embedding` would be performed. (Tracking issue - llvm#141817)
…r<double> (llvm#143197) Currently `Embedding` is `std::vector<double>`. This PR makes it a data type wrapped around `std::vector<double>` to overload basic arithmetic operators and expose comparison operations. It _simplifies_ the usage here and in the passes where operations on `Embedding` would be performed. (Tracking issue - llvm#141817)
Currently
Embedding
isstd::vector<double>
. This PR makes it a data type wrapped aroundstd::vector<double>
to overload basic arithmetic operators and expose comparison operations. It simplifies the usage here and in the passes where operations onEmbedding
would be performed.(Tracking issue - #141817)