-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cydrain The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cydrain Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
76684da
to
7a70fdf
Compare
/kind improvement |
src/index/diskann/diskann.cc
Outdated
@@ -62,6 +62,15 @@ class DiskANNIndexNode : public IndexNode { | |||
expected<DataSetPtr, Status> | |||
GetVectorByIds(const DataSet& dataset, const Config& cfg) const override; | |||
|
|||
bool | |||
HasRawData(const std::string& metric_type) const override { | |||
if (metric_type == metric::L2) { |
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.
just return metric_type == metric::L2?
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.
ok
if constexpr (std::is_same<faiss::IndexBinaryIVF, T>::value) { | ||
return true; | ||
} | ||
} |
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.
If none of the above conditions are met, will there be a return value?
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.
that will not happen
if constexpr (std::is_same_v<detail::raft_ivf_pq_index, T>) { | ||
return false; | ||
} | ||
} |
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.
If none of the above conditions are met, will there be a return value?
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.
that will not happen
7a70fdf
to
2ffc379
Compare
Signed-off-by: Yudong Cai <[email protected]>
7c2ede8
to
fc1e17b
Compare
/lgtm |
No description provided.