diff options
author | laurent <laurent.mazare@gmail.com> | 2023-06-21 09:13:57 +0100 |
---|---|---|
committer | laurent <laurent.mazare@gmail.com> | 2023-06-21 09:13:57 +0100 |
commit | 8cde0c54788d7ae7c676e4f2fad5fcbc16f6980c (patch) | |
tree | 265aa584ac6cb9024716e08e38b61fe454431823 /src/tensor.rs | |
parent | f319583530745dfab125bd2d16c2dfa4aa75646d (diff) | |
download | candle-8cde0c54788d7ae7c676e4f2fad5fcbc16f6980c.tar.gz candle-8cde0c54788d7ae7c676e4f2fad5fcbc16f6980c.tar.bz2 candle-8cde0c54788d7ae7c676e4f2fad5fcbc16f6980c.zip |
Add some skeleton code for GPU support.
Diffstat (limited to 'src/tensor.rs')
-rw-r--r-- | src/tensor.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tensor.rs b/src/tensor.rs index b8fa738a..2d704a65 100644 --- a/src/tensor.rs +++ b/src/tensor.rs @@ -209,6 +209,7 @@ impl Tensor { let data = S::cpu_storage_as_slice(cpu_storage)?; Ok(data[0]) } + Storage::Cuda { .. } => todo!(), } } @@ -249,6 +250,7 @@ impl Tensor { let data = S::cpu_storage_as_slice(cpu_storage)?; Ok(self.strided_index().map(|i| data[i]).collect()) } + Storage::Cuda { .. } => todo!(), } } @@ -266,6 +268,7 @@ impl Tensor { assert!(src_index.next().is_none()); Ok(rows) } + Storage::Cuda { .. } => todo!(), } } |