Skip to content

Commit 8293765

Browse files
committed
Don't load extra snapshot repo. If we're on snapshots we'll have had it already
Signed-off-by: Ryan Nett <[email protected]>
1 parent fc34fd9 commit 8293765

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tensorflow-kotlin-parent/tensorflow-core-kotlin-jupyter/src/main/kotlin/org/tensorflow/jupyter/TensorflowKotlinCoreIntegration.kt

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class TensorflowKotlinCoreIntegration : JupyterIntegration() {
3838
render<Operand<*>> { it.asOutput().toString() }
3939
render<Op> { it.op().toString() }
4040

41+
//TODO add a implicit receiver of EagerSession.getDefault() instead
4142
onLoaded { declare("tf" to EagerSession.getDefault().tf) }
4243
}
4344
}

tensorflow-kotlin-parent/tensorflow-kotlin-jupyter/src/main/kotlin/org/tensorflow/jupyter/TensorflowKotlinIntegration.kt

-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public class TensorflowKotlinIntegration : JupyterIntegration() {
4444
"No version property found in the $tensorflowPropertiesFile resource, did you overwrite it?")
4545
}
4646

47-
if (version.lowercase().endsWith("snapshot")) {
48-
repositories("https://oss.sonatype.org/content/repositories/snapshots/")
49-
}
50-
5147
// TODO use ext instead of platform https://github.com/Kotlin/kotlin-jupyter/issues/285
5248
dependencies("org.tensorflow:tensorflow-core-platform-gpu:$version")
5349
dependencies("org.tensorflow:tensorflow-core-kotlin-jupyter:$version")

0 commit comments

Comments
 (0)