Skip to content

Commit

Permalink
fix ucopy for f64 tensors (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
laptou authored Oct 24, 2023
1 parent 7bd0fab commit 45dbe54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-core/src/cuda_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ impl BackendStorage for CudaStorage {
if src_l.is_contiguous() {
dev.dtod_copy(&src, &mut dst).w()?
} else {
let func = dev.get_or_load_func("ucopy_64", kernels::UNARY)?;
let func = dev.get_or_load_func("ucopy_f64", kernels::UNARY)?;
// SAFETY: Set later by running the kernel.
let params = (el_count, dims.len(), &ds, &src, &mut dst);
// SAFETY: ffi.
Expand Down

0 comments on commit 45dbe54

Please sign in to comment.