[][src]Struct faiss::index::gpu::GpuIndexImpl

pub struct GpuIndexImpl<'gpu, I> { /* fields omitted */ }

Native GPU implementation of a Faiss index. GPU indexes in Faiss are first built on the CPU, and subsequently transferred to one or more GPU's via the into_gpu or to_gpu methods. Calling into_cpu (or to_cpu) enables the user to bring the index back to CPU memory.

When using to_gpu or to_cpu, the indexes will contain the same indexed vectors, but are independent at the point of creation. The use of into_gpu or into_cpu isn't necessarily faster, but will automatically free the originating index.

The 'gpu lifetime ensures that the GPU resources are in scope for as long as the index lives.

Methods

impl<'gpu, I> GpuIndexImpl<'gpu, I> where
    I: NativeIndex,
    I: FromInnerPtr
[src]

Transfer the GPU index back to its original CPU implementation.

Transfer the GPU index back to its original CPU implementation, freeing the GPU-backed index in the process.

Trait Implementations

impl<'g, I> GpuIndex for GpuIndexImpl<'g, I> where
    I: NativeIndex
[src]

impl<'gpu, I> Index for GpuIndexImpl<'gpu, I> where
    I: Index
[src]

impl<'g, I> NativeIndex for GpuIndexImpl<'g, I> where
    I: NativeIndex
[src]

impl<'g, I> Drop for GpuIndexImpl<'g, I>
[src]

impl<'g, I> Send for GpuIndexImpl<'g, I> where
    I: Send
[src]

impl<'gpu, I: Debug> Debug for GpuIndexImpl<'gpu, I>
[src]

Auto Trait Implementations

impl<'gpu, I> !Sync for GpuIndexImpl<'gpu, I>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]