pub struct Embedding();
Expand description
Trainable embedding operation, given an index and a 2d-array of embedding vectors,
index into the embedding vectors. FIXME
drug hardcodes ArrayD<f32>
inside the graph so
the index should be a batch_size
length arrayD<f32>
where the values are integers.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Embedding
impl<'de> Deserialize<'de> for Embedding
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more