Skip to content

Instantly share code, notes, and snippets.

@sachaarbonel
Created November 5, 2022 21:31
Show Gist options
  • Save sachaarbonel/d9131a3c774e3fa44fda5a5d863fc167 to your computer and use it in GitHub Desktop.
Save sachaarbonel/d9131a3c774e3fa44fda5a5d863fc167 to your computer and use it in GitHub Desktop.
impl KdPoint for EmbeddedBook {
type Scalar = f32;
type Dim = typenum::U2; // 2 dimensional tree.
fn at(&self, k: usize) -> f32 {
self.embeddings[k]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment