summaryrefslogtreecommitdiff
path: root/candle-core/src/cpu_backend.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-07-22 11:39:27 +0200
committerGitHub <noreply@github.com>2023-07-22 10:39:27 +0100
commit43c72232927ca80c850a73ce977c2063d5a2dcf5 (patch)
treec93c07984e06b1925313f4f641a8b1a3956fc0ed /candle-core/src/cpu_backend.rs
parent52c5d8c087f6a2ee91b807467860eb3e96bb6267 (diff)
downloadcandle-43c72232927ca80c850a73ce977c2063d5a2dcf5.tar.gz
candle-43c72232927ca80c850a73ce977c2063d5a2dcf5.tar.bz2
candle-43c72232927ca80c850a73ce977c2063d5a2dcf5.zip
Rename the .r functions to .dims so as to be a bit more explicit. (#220)
Diffstat (limited to 'candle-core/src/cpu_backend.rs')
-rw-r--r--candle-core/src/cpu_backend.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs
index b8d52c95..82e1f3e2 100644
--- a/candle-core/src/cpu_backend.rs
+++ b/candle-core/src/cpu_backend.rs
@@ -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,