Function faiss::index::io::write_index

source ·
pub fn write_index<I, P>(index: &I, file_name: P) -> Result<()>where
    I: NativeIndex,
    I: CpuIndex,
    P: AsRef<str>,
Expand description

Write an index to a file.

Error

This function returns an error if the description contains any byte with the value \0 (since it cannot be converted to a C string), or if the internal index writing operation fails.