Parametric Inversion
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 467 commits ahead of zenna:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
arrows
benchmarks
examples
julia
reverseflow
tests
.gitattributes
.gitignore
.python-version
.travis.yml
README.md
setup.cfg
setup.py

README.md

Build Status

ReverseFlow

ReverseFlow is a Python3 library to execute TensorFlow programs backwards

Depdendencies

  • TensorFlow

Quick Start

There are two things to do. First, construct a function using a tf.placeholder for each input.

from reverseflow import invert

## f(x,y) = x * y + x
tf.reset_default_graph()
g = tf.get_default_graph()

x = tf.placeholder('float32', name="x")
y = tf.placeholder('float32', name="y")

Then call invert

inv_g = invert(g, (x, y))