Skip to content

Instantly share code, notes, and snippets.

@FrancescoSaverioZuppichini
Last active July 4, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancescoSaverioZuppichini/4bcb5cc60c98d447d65d8a79ee92d8ac to your computer and use it in GitHub Desktop.
Save FrancescoSaverioZuppichini/4bcb5cc60c98d447d65d8a79ee92d8ac to your computer and use it in GitHub Desktop.
from TFGraphConvertible import TFGraphConvertible
class Model(TFGraphConvertible):
def __init__(self):
self.variable = None
def __call__(self):
self.variable = tf.Variable([1], name='variable')
model = Model()
model()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment