mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Rename the .r functions to .dims so as to be a bit more explicit. (#220)
This commit is contained in:
@ -1688,7 +1688,7 @@ impl BackendStorage for CpuStorage {
|
||||
|
||||
fn embedding(&self, ids_l: &Layout, rhs: &Self, rhs_l: &Layout) -> Result<Self> {
|
||||
let ids = self.as_slice::<u32>()?;
|
||||
let (vocab_size, hidden_size) = rhs_l.shape().r2()?;
|
||||
let (vocab_size, hidden_size) = rhs_l.shape().dims2()?;
|
||||
Embedding {
|
||||
vocab_size,
|
||||
hidden_size,
|
||||
|
Reference in New Issue
Block a user