Skip to content

Instantly share code, notes, and snippets.

@ispamm
Last active March 9, 2018 19:05
Show Gist options
  • Save ispamm/71ffc62d142990c6faf1ac079b3b5ff9 to your computer and use it in GitHub Desktop.
Save ispamm/71ffc62d142990c6faf1ac079b3b5ff9 to your computer and use it in GitHub Desktop.
# Initialize the network
net = SingleHiddenLayerNetwork()
# Get all variables
len(net.variables) # Print: 0
# Make some prediction
net(tf.constant(2.0, shape=(1,1)))
# Get all variables (again)
len(net.variables) # Print: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment