Remove nd4j dependency from benchmarks
This commit is contained in:
parent
2a3cf190b1
commit
4277f480d8
benchmarks
kmath-tensorflow/src/main/kotlin/space/kscience/kmath/tensorflow
@ -10,7 +10,7 @@ plugins {
|
||||
}
|
||||
|
||||
allOpen.annotation("org.openjdk.jmh.annotations.State")
|
||||
sourceSets.register("benchmarks")
|
||||
//sourceSets.register("benchmarks")
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@ -66,8 +66,8 @@ kotlin {
|
||||
implementation(projects.kmathOjalgo)
|
||||
implementation(projects.kmath.kmathTensorflow)
|
||||
implementation(projects.kmathMultik)
|
||||
implementation("org.tensorflow:tensorflow-core-platform:0.4.0")
|
||||
implementation("org.nd4j:nd4j-native:1.0.0-M1")
|
||||
implementation(libs.tensorflow.core.platform)
|
||||
// implementation(libs.nd4j.native.platform)
|
||||
// uncomment if your system supports AVX2
|
||||
// val os = System.getProperty("os.name")
|
||||
//
|
||||
|
@ -73,7 +73,7 @@ public abstract class TensorFlowOutput<T, TT : TType>(
|
||||
|
||||
internal val actualTensor by lazy {
|
||||
Session(graph).use { session ->
|
||||
TensorFlowArray(session.runner().fetch(output).run().first().actualizeTensor())
|
||||
TensorFlowArray(session.runner().fetch(output).run().single().value.actualizeTensor())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user