diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-08-23 10:42:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 10:42:19 +0100 |
commit | 9a5c7db91a40bfeab1dbaf1622c67a21f5ad19b8 (patch) | |
tree | 4c7fef2cdb78409ca30e14981c783d717cd49f97 /candle-core/src/cpu/kernels.rs | |
parent | 3743bed2d7bc02069770902e4a956aeabaef5453 (diff) | |
download | candle-9a5c7db91a40bfeab1dbaf1622c67a21f5ad19b8.tar.gz candle-9a5c7db91a40bfeab1dbaf1622c67a21f5ad19b8.tar.bz2 candle-9a5c7db91a40bfeab1dbaf1622c67a21f5ad19b8.zip |
Add support for i64 (#563)
* Add the i64 dtype.
* Adapt the cuda kernels.
Diffstat (limited to 'candle-core/src/cpu/kernels.rs')
-rw-r--r-- | candle-core/src/cpu/kernels.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/candle-core/src/cpu/kernels.rs b/candle-core/src/cpu/kernels.rs index 1184f8f3..cdbf5a21 100644 --- a/candle-core/src/cpu/kernels.rs +++ b/candle-core/src/cpu/kernels.rs @@ -53,6 +53,7 @@ impl VecOps for f64 {} impl VecOps for half::bf16 {} impl VecOps for u8 {} impl VecOps for u32 {} +impl VecOps for i64 {} #[inline(always)] pub fn par_for_each(n_threads: usize, func: impl Fn(usize) + Send + Sync) { |