Created
November 5, 2022 21:31
-
-
Save sachaarbonel/d9131a3c774e3fa44fda5a5d863fc167 to your computer and use it in GitHub Desktop.
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
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