Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created April 3, 2014 08:28
Show Gist options
  • Save bayerj/9950578 to your computer and use it in GitHub Desktop.
Save bayerj/9950578 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: learn.test_cnn.test_cnn_fit
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bayerj/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/Users/bayerj/devel/breze/tests/learn/test_cnn.py", line 52, in test_cnn_fit
m.fit(X, Z)
File "/Users/bayerj/devel/breze/breze/learn/base.py", line 235, in fit
for i, info in enumerate(itr):
File "/Users/bayerj/devel/breze/breze/learn/base.py", line 217, in iter_fit
self._f_loss, self._f_dloss = self._make_loss_functions()
File "/Users/bayerj/devel/breze/breze/learn/base.py", line 184, in _make_loss_functions
givens=givens, on_unused_input=on_unused_input)
File "/Users/bayerj/devel/breze/breze/arch/util.py", line 524, in function
on_unused_input=on_unused_input, updates=updates)
File "/Users/bayerj/devel/breze/breze/arch/util.py", line 73, in theano_function_with_nested_exprs
*args, **kwargs)
File "/Users/bayerj/devel/Theano/theano/compile/function.py", line 222, in function
profile=profile)
File "/Users/bayerj/devel/Theano/theano/compile/pfunc.py", line 512, in pfunc
on_unused_input=on_unused_input)
File "/Users/bayerj/devel/Theano/theano/compile/function_module.py", line 1314, in orig_function
defaults)
File "/Users/bayerj/devel/Theano/theano/compile/function_module.py", line 1183, in create
_fn, _i, _o = self.linker.make_thunk(input_storage=input_storage_lists)
File "/Users/bayerj/devel/Theano/theano/gof/link.py", line 434, in make_thunk
output_storage=output_storage)[:3]
File "/Users/bayerj/devel/Theano/theano/gof/vm.py", line 845, in make_all
for node in order]
File "/Users/bayerj/devel/Theano/theano/gof/op.py", line 591, in make_thunk
output_storage=node_output_storage)
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 933, in make_thunk
keep_lock=keep_lock)
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 876, in __compile__
keep_lock=keep_lock)
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 1297, in cthunk_factory
key = self.cmodule_key()
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 1017, in cmodule_key
c_compiler=self.c_compiler(),
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 1145, in cmodule_key_
for ipos, i in enumerate(node.inputs)),
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 1145, in <genexpr>
for ipos, i in enumerate(node.inputs)),
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 1099, in in_sig
isig = (isig[0].theano_hash(), topological_pos, i_idx)
File "/Users/bayerj/devel/Theano/theano/tensor/var.py", line 597, in theano_hash
return hash_from_ndarray(d)
File "/Users/bayerj/devel/Theano/theano/tensor/utils.py", line 25, in hash_from_ndarray
hash_from_code(str(data.strides)) +
File "/Users/bayerj/devel/Theano/theano/gof/cc.py", line 32, in hash_from_code
return hashlib.md5(msg).hexdigest()
ValueError: ndarray is not C-contiguous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment