Skip to content

Commit 63437a4

Browse files
authored
Fix remnant memcpy_stod call (#3267)
1 parent 5498dff commit 63437a4

File tree

1 file changed

+1
-1
lines changed
  • candle-core/src/cuda_backend

1 file changed

+1
-1
lines changed

candle-core/src/cuda_backend/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ impl Map1 for UpsampleBilinear2D {
10121012

10131013
// SAFETY: Set later by running the kernel.
10141014
let out = unsafe { dev.alloc::<T>(dst_el)? };
1015-
let ds = dev.memcpy_stod(&ds)?;
1015+
let ds = dev.clone_htod(&ds)?;
10161016

10171017
let mut builder = func.builder();
10181018
barg!(builder, out_w);

0 commit comments

Comments
 (0)