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
C API : ClusteringIterationStats integration #1140
C API : ClusteringIterationStats integration #1140
Conversation
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.
Thank you for working on this! There is one major blocker and a minor concern that should be fixed before merging, please see the comments below.
- Missing definitions for the
ClusteringIterationStats
C getters - rename
obj
toiteration_stats
for consistency
@@ -75,14 +75,20 @@ FAISS_DECLARE_GETTER(Clustering, size_t, d) | |||
/// getter for k | |||
FAISS_DECLARE_GETTER(Clustering, size_t, k) | |||
|
|||
FAISS_DECLARE_CLASS(ClusteringIterationStats) |
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.
While these lines will correctly declare the class and its getters, they won't provide an implementation. Attempting to call any of these methods would fail at link time. Please head over to Clustering_c.cpp and add them through the DEFINE_GETTER
macro (should be easy to follow by example).
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.
done thanks !!
3f9b817
Co-Authored-By: Eduardo Pinho <enet4mikeenet@gmail.com>
Co-Authored-By: Eduardo Pinho <enet4mikeenet@gmail.com>
Co-Authored-By: Eduardo Pinho <enet4mikeenet@gmail.com>
Co-Authored-By: Eduardo Pinho <enet4mikeenet@gmail.com>
C Api : update Clustering iterations stats
fix #1139
based on #1139 (comment)