And the full trace: 

Traceback (most recent call last):
  File 
"/Users/peter/projects/spiking-experiments/scratch/pure_theano_dynamic_scan.py",
 
line 34, in <module>
    ys2 = f2(xs)
  File 
"/Users/peter/projects/spiking-experiments/venv/lib/python2.7/site-packages/theano/compile/function_module.py",
 
line 871, in __call__
    storage_map=getattr(self.fn, 'storage_map', None))
  File 
"/Users/peter/projects/spiking-experiments/venv/lib/python2.7/site-packages/theano/gof/link.py",
 
line 314, in raise_with_op
    reraise(exc_type, exc_value, exc_trace)
  File 
"/Users/peter/projects/spiking-experiments/venv/lib/python2.7/site-packages/theano/compile/function_module.py",
 
line 859, in __call__
    outputs = self.fn()
  File 
"/Users/peter/projects/spiking-experiments/venv/lib/python2.7/site-packages/theano/scan_module/scan_op.py",
 
line 951, in rval
    r = p(n, [x[0] for x in i], o)
  File 
"/Users/peter/projects/spiking-experiments/venv/lib/python2.7/site-packages/theano/scan_module/scan_op.py",
 
line 940, in <lambda>
    self, node)
  File "theano/scan_module/scan_perform.pyx", line 505, in 
theano.scan_module.scan_perform.perform 
(/Users/peter/.theano/compiledir_Darwin-16.0.0-x86_64-i386-64bit-i386-2.7.10-64/scan_perform/mod.cpp:5551)
ValueError: could not broadcast input array from shape (10) into shape (0)
Apply node that caused the error: for{cpu,scan_fn}(Subtensor{int64}.0, 
Subtensor{:int64:}.0, IncSubtensor{Set;:int64:}.0, Subtensor{int64}.0)
Toposort index: 15
Inputs types: [TensorType(int64, scalar), TensorType(float64, matrix), 
TensorType(float64, matrix), TensorType(int64, scalar)]
Inputs shapes: [(), (20, 10), (21, 0), ()]
Inputs strides: [(), (80, 8), (8, 8), ()]
Inputs values: [array(20), 'not shown', array([], shape=(21, 0), 
dtype=float64), array(20)]
Outputs clients: [[Subtensor{int64::}(for{cpu,scan_fn}.0, Constant{1})], 
['output']]

Backtrace when the node is created(use Theano flag traceback.limit=N to 
make it longer):
  File 
"/Users/peter/projects/spiking-experiments/scratch/pure_theano_dynamic_scan.py",
 
line 32, in <module>
    out2, updates2 = int_and_fire_batch(inp2)
  File 
"/Users/peter/projects/spiking-experiments/scratch/pure_theano_dynamic_scan.py",
 
line 28, in int_and_fire_batch
    out, updates = theano.scan(int_and_fire, sequences=[xs])

HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and 
storage map footprint of this apply node.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to