summaryrefslogtreecommitdiff
path: root/candle-core/src/cpu_backend.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-07-29 19:48:04 +0100
committerGitHub <noreply@github.com>2023-07-29 19:48:04 +0100
commitc950a5c6b1bd207f6f9cba18780e0baa44e3254a (patch)
treedda49e92ece97b85f9260eba714963d94f694525 /candle-core/src/cpu_backend.rs
parent16c33383eb2beda515962b219728209b9edb2946 (diff)
downloadcandle-c950a5c6b1bd207f6f9cba18780e0baa44e3254a.tar.gz
candle-c950a5c6b1bd207f6f9cba18780e0baa44e3254a.tar.bz2
candle-c950a5c6b1bd207f6f9cba18780e0baa44e3254a.zip
Cuda support for the mnist training. (#277)
* Cuda support for the mnist training. * min/max fix + testing. * Add the argmin/argmax tests. * More cuda support for argmin/argmax. * Cuda kernels for argmin and argmax.
Diffstat (limited to 'candle-core/src/cpu_backend.rs')
-rw-r--r--candle-core/src/cpu_backend.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs
index c39cb9f7..59c17387 100644
--- a/candle-core/src/cpu_backend.rs
+++ b/candle-core/src/cpu_backend.rs
@@ -244,7 +244,7 @@ impl ReduceIndex {
val = s
}
}
- dst[unstr_index] = g(val, acc)
+ dst_to_set[unstr_index] = g(val, acc)
}
}
}