summaryrefslogtreecommitdiff
path: root/candle-core/src/cpu_backend.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2024-03-21 13:09:42 +0100
committerGitHub <noreply@github.com>2024-03-21 13:09:42 +0100
commitec97c98e81707c8f66db6be22d2df7c8791c55b8 (patch)
tree70c7e70f0333b387ef8d1bd6de7209641ba53549 /candle-core/src/cpu_backend.rs
parentbb3ee48039ed040da48def94f57a6cf1eb0e7911 (diff)
downloadcandle-ec97c98e81707c8f66db6be22d2df7c8791c55b8.tar.gz
candle-ec97c98e81707c8f66db6be22d2df7c8791c55b8.tar.bz2
candle-ec97c98e81707c8f66db6be22d2df7c8791c55b8.zip
Async tensor copying. (#1900)
Diffstat (limited to 'candle-core/src/cpu_backend.rs')
-rw-r--r--candle-core/src/cpu_backend.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs
index 1504d5b8..fa48577c 100644
--- a/candle-core/src/cpu_backend.rs
+++ b/candle-core/src/cpu_backend.rs
@@ -2814,6 +2814,10 @@ impl BackendDevice for CpuDevice {
Ok(s.clone())
}
+ fn storage_from_cpu_storage_owned(&self, s: CpuStorage) -> Result<Self::Storage> {
+ Ok(s)
+ }
+
fn new(_: usize) -> Result<Self> {
Ok(Self)
}