Tensor Flow with Java

Tensors is a concept in mathematics.
    They have 
  • Type
  • Rank (no of dimensions)
  • Shapes
Rank0 - scalr
Rank 1/ Shape{5} - Array of size 5
Rank 2/ Shape {3} - 3X3 Matrix

In TensorFlow
    • Tensors in Tensor Flow may be contained by variables 
    • Tensors may be mutated by operations
    • Graphs contains tensors, variables and operations


TensorFlow java SDK available as a maven dependency
It wraps only 20% of the TensorFlow classes
It includes
  • Basic model creation
  • Model Training
  • Inline Predictions
  • Predictions across the network.
Essential classes
  1. org.tensorflow.Tensor<T>
  2. org.tensorflow.Output
    • This is used to reach into a running graph and help us to get the values. For example the predictions that we want
  3. org.tensorflow.Graph
    • The database for tensors
  4. org.tensorflow.Session
    • If the Graph is the database, then Session is the connection to Database

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days