Skip to content

sami-badawi/tf_scala_ex

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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