Skip to content

Instantly share code, notes, and snippets.

@o1lo01ol1o
Created April 17, 2016 16:36
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 o1lo01ol1o/e8d883d098dfc7c3e9660e563a4005bd to your computer and use it in GitHub Desktop.
Save o1lo01ol1o/e8d883d098dfc7c3e9660e563a4005bd to your computer and use it in GitHub Desktop.
File "/usr/local/lib/python2.7/dist-packages/blocks/main_loop.py", line 230, in _run_epoch
self._run_extensions('before_epoch')
File "/usr/local/lib/python2.7/dist-packages/blocks/main_loop.py", line 263, in _run_extensions
extension.dispatch(CallbackName(method_name), *args)
File "/usr/local/lib/python2.7/dist-packages/blocks/extensions/__init__.py", line 338, in dispatch
self.do(callback_invoked, *(from_main_loop + tuple(arguments)))
File "/usr/local/lib/python2.7/dist-packages/blocks/extensions/monitoring.py", line 95, in do
value_dict = self._evaluator.evaluate(self.data_stream)
File "/usr/local/lib/python2.7/dist-packages/blocks/monitoring/evaluators.py", line 331, in evaluate
self.process_batch(batch)
File "/usr/local/lib/python2.7/dist-packages/blocks/monitoring/evaluators.py", line 304, in process_batch
numerical_values = self._aggregate_fun(**batch)
File "/home/tpierson/.local/lib/python2.7/site-packages/theano/compile/function_module.py", line 871, in __call__
storage_map=getattr(self.fn, 'storage_map', None))
File "/home/tpierson/.local/lib/python2.7/site-packages/theano/gof/link.py", line 314, in raise_with_op
reraise(exc_type, exc_value, exc_trace)
File "/home/tpierson/.local/lib/python2.7/site-packages/theano/compile/function_module.py", line 859, in __call__
outputs = self.fn()
ValueError: Input dimension mis-match. (input[0].shape[1] = 32, input[1].shape[1] = 64)
Apply node that caused the error: Elemwise{Mul}[(0, 0)](unpool_3_3_32grad, unpool_3_3_32unpool_3_3_32_apply_input_proposed_out)
Toposort index: 929
Inputs types: [TensorType(float32, 4D), TensorType(float32, 4D)]
Inputs shapes: [(4, 32, 3054, 2), (4, 64, 3054, 2)]
Inputs strides: [(781824, 24432, 8, 4), (1563648, 24432, 8, 4)]
Inputs values: ['not shown', 'not shown']
Outputs clients: [[CorrMM{half, (1, 1)}(unpool_3_3_32_apply_output, InplaceDimShuffle{1,0,2,3}.0)]]
HINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.
Original exception:
ValueError: Input dimension mis-match. (input[0].shape[1] = 32, input[1].shape[1] = 64)
Apply node that caused the error: Elemwise{Mul}[(0, 0)](unpool_3_3_32grad, unpool_3_3_32unpool_3_3_32_apply_input_proposed_out)
Toposort index: 929
Inputs types: [TensorType(float32, 4D), TensorType(float32, 4D)]
Inputs shapes: [(4, 32, 3054, 2), (4, 64, 3054, 2)]
Inputs strides: [(781824, 24432, 8, 4), (1563648, 24432, 8, 4)]
Inputs values: ['not shown', 'not shown']
Outputs clients: [[CorrMM{half, (1, 1)}(unpool_3_3_32_apply_output, InplaceDimShuffle{1,0,2,3}.0)]]
HINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment