Skip to content

Commit 701fc08

Browse files
committed
bugfix
1 parent 0bf8882 commit 701fc08

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ndarray/ndarray-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ benchmark {
3131
}
3232

3333
var types = arrayOf("Double", "Float")
34-
val benchmarks = arrayOf("Dot", "Elu", "Softmax", "Logistic", "Neg", "Probit", "Gelu")
34+
val benchmarks = arrayOf("Dot", "Elu", "Exp", "Gelu", "Logistic", "Neg", "Probit", "Softmax")
3535
for (type in types)
3636
register(type.lowercase()) {
3737
include(".*$type.*")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package io.kinference.ndarray
2+
3+
fun randomFloat(l: Float = -1024f, r: Float = 1024f): Float =
4+
(r - l) * Math.random().toFloat() + l
5+
6+
fun randomDouble(l: Double = -1024.0, r: Double = 1024.0): Double =
7+
(r - l) * Math.random() + l

ndarray/ndarray-core/src/jvmBenchmark/kotlin/io/kinference/ndarray/Utils.kt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)