Testing TensorFlow Java bindings within Scala
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.2 KiB


Build Status


This is a project for testing the Java bindings to TensorFlow, using Scala 3. It is (C)opyright 2021–2022 by Hanns Holger Rutz. All rights reserved. The project is released under the GNU Lesser General Public License v2.1+ and comes with absolutely no warranties. To contact the author, send an e-mail to contact at sciss.de.

requirements / installation

The project build with sbt. You may need to edit build.sbt to adjust tfClassifer.

Furthermore, for Keras models, it currently relies on an unstable version of tensorflow-keras-scala (bindings). To prepare them, clone that repository, and within use git checkout work and sbt +publishLocal to make an unstable version available to this build.

Then here,

sbt run

sbt 'runMain de.sciss.tf.CnnTest 10 100 sgd'


sbt 'runMain de.sciss.tf.CnnGanMnist'