Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created June 7, 2011 15:06
Show Gist options
  • Select an option

  • Save bayerj/1012438 to your computer and use it in GitHub Desktop.

Select an option

Save bayerj/1012438 to your computer and use it in GitHub Desktop.
breaking example for theano shape expression
import theano
import theano.tensor as T
X = T.matrix()
expr = X.shape[0]
f = theano.function([X], expr)
print f([[1, 2], [2, 3]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment