Skip to content

Instantly share code, notes, and snippets.

@Enet4
Created April 11, 2018 19:12
Show Gist options
  • Save Enet4/e9b0f30b51aea15baf7efd51efa5561c to your computer and use it in GitHub Desktop.
Save Enet4/e9b0f30b51aea15baf7efd51efa5561c to your computer and use it in GitHub Desktop.
index/gpu.rs in faiss-rs
#[derive(Debug)]
pub struct GpuIndexImpl<'gpu, I> {
inner: *mut FaissGpuIndex,
/// retaining the GPU resources' lifetime,
/// plus the original index type `I`
phantom: PhantomData<(&'gpu (), I)>,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment