Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created February 26, 2010 10:08
Show Gist options
  • Select an option

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

Select an option

Save bayerj/315597 to your computer and use it in GitHub Desktop.
$ py map.py
Definition in:
File "map.py", line 11, in <module>
abs_expr, abs_updates = T_map(lambda x: abs(x), [V])
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/scan.py", line 72, in map
mode = mode)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/scan.py", line 443, in scan
+ shared_non_seqs))
Traceback (most recent call last):
File "map.py", line 18, in <module>
print abser(scipy.array((1, -1)))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/compile/function_module.py", line 477, in __call__
self.fn()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/gof/link.py", line 271, in streamline_default_f
raise_with_op(node)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/gof/link.py", line 267, in streamline_default_f
thunk()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/gof/cc.py", line 1134, in <lambda>
thunk = lambda p = p, i = node_input_storage, o = node_output_storage, n = node: p(n, [x[0] for x in i], o)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/scan.py", line 676, in perform
inplace_map)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/theano/scan.py", line 696, in scan
arg_shape = args[i+n_seqs].shape[1:]
IndexError: ('list index out of range', <theano.scan.Scan object at 0x1028ded10>(0, <TensorType(float64, vector)>))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment