tensorflux 0.8.2

The package provides an interface to TensorFlow.
1
2
3
4
5
6
7
8
9
10
import os
import tensorflow as tf

a = tf.placeholder(tf.float32, name='a')
b = tf.placeholder(tf.float32, name='b')
c = tf.mul(a, b, name='c')

definition = tf.Session().graph_def
directory = os.path.dirname(os.path.realpath(__file__))
tf.train.write_graph(definition, directory, 'multiplication.pb', as_text=False)