Created
April 11, 2018 19:12
-
-
Save Enet4/e9b0f30b51aea15baf7efd51efa5561c to your computer and use it in GitHub Desktop.
index/gpu.rs in faiss-rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[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