Skip to content

Instantly share code, notes, and snippets.

@FrancescoSaverioZuppichini
Last active July 4, 2018 14:50
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/764c20a0b7c871851f2b6d354fd17372 to your computer and use it in GitHub Desktop.
Save FrancescoSaverioZuppichini/764c20a0b7c871851f2b6d354fd17372 to your computer and use it in GitHub Desktop.
import tensorflow as tf
class Model():
def __init__(self):
self.variable = None
def __call__(self):
self.variable = tf.Variable([1], name='variable')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment