Skip to content

sami-badawi/tf_scala_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf_scala_ex Starter Project For tensorflow_scala

tensorflow_scala is a Scala binding for TensorFlow.

It is actively maintained and it up to date with TensorFlow.

Getting SBT set up to work with native bindings to TensorFlow library is a little tricky. This project is a starter project showing how this is done.

Code Examples

This has 2 examples taken from tensorflow_scala project.

  • Linear Regression
  • MNIS

Getting Started

git clone https://github.com/sami-badawi/tf_scala_ex.git
cd tf_scala_ex
sbt run

Dependencies with platform

    libraryDependencies ++= Seq(
      "org.platanios" %% "tensorflow-api" % "0.5.10",
      "org.platanios" %% "tensorflow-data" % "0.5.10",
      "org.platanios" %% "tensorflow-examples" % "0.5.10",
      "org.platanios" %% "tensorflow-jni" % "0.5.10",
      "org.platanios" %% "tensorflow" % "0.5.10",
      "org.platanios" %% "tensorflow" % "0.5.10" classifier "linux"
    )

Supported Platforms

  • darwin
  • linux
  • windows

Not sure if there is a more general way to specify platform in SBT file than the code above.

JDK Version

Part of tensorflow_scala is compiled for Java 11 and will not run under Java 8. So starter this project will have the same constraint.

About

New starter project for tensorflow_scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages