summaryrefslogtreecommitdiff
path: root/candle-core/src/cpu/kernels.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-08-23 10:42:19 +0100
committerGitHub <noreply@github.com>2023-08-23 10:42:19 +0100
commit9a5c7db91a40bfeab1dbaf1622c67a21f5ad19b8 (patch)
tree4c7fef2cdb78409ca30e14981c783d717cd49f97 /candle-core/src/cpu/kernels.rs
parent3743bed2d7bc02069770902e4a956aeabaef5453 (diff)
downloadcandle-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.rs1
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) {