You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!codec) {
// Check for NaNs in input data. Normally it is the user's
// responsibility, but it may spare us some hard-to-debug
// reports.
const float* x = reinterpret_cast<const float*>(x_in);
for (size_t i = 0; i < nx * d; i++) {
FAISS_THROW_IF_NOT_MSG(
std::isfinite(x[i]), "input contains NaN's or Inf's");
}
}
Can you give users a flag to avoid this check ?
We already have a level above faiss which parse json docs to build vectors and check for all possible NaN/nil cases.
The text was updated successfully, but these errors were encountered:
https://github.com/facebookresearch/faiss/blob/e99ad124cbc40c03f72a37032ec25fcabf1479cf/faiss/Clustering.cpp#L283C1-L292C6
Can you give users a flag to avoid this check ?
We already have a level above faiss which parse json docs to build vectors and check for all possible NaN/nil cases.
The text was updated successfully, but these errors were encountered: