Opened 9 years ago
Last modified 9 years ago
#49869 new defect
theano.tensor.tests.test_slinalg.TestKron fails
Reported by: | ohadle@… | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | py-theano |
Description
I've just installed py-theano and ran the tests, and I get a failure on theano.tensor.tests.test_slinalg.TestKron: (Theano version is 0.7)
? ~ /opt/local/bin/theano-test-2.7 Theano version 0.7.0 theano is installed in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano NumPy version 1.10.1 NumPy relaxed strides checking option: True NumPy is installed in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy Python version 2.7.10 (default, Nov 15 2015, 11:28:16) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] nose version 1.3.7 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/misc/pycuda_init.py:34: UserWarning: PyCUDA import failed in theano.misc.pycuda_init warnings.warn("PyCUDA import failed in theano.misc.pycuda_init") ..................S............................K................../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/compile/profilemode.py:103: UserWarning: DEPRECATION WARNING: The ProfileMode is deprecated. Use the Theano flags/parameter to theano.function 'profile=True' instead of 'mode=ProfileMode' "DEPRECATION WARNING: The ProfileMode is deprecated. Use the Theano" ................................................../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/vm.py:729: UserWarning: CVM does not support memory profile, using Stack VM. 'CVM does not support memory profile, using Stack VM.') ......................0.0581646137166 0.0581646137166 0.0581646137166 0.0581646137166 ....................................................................................................................................................SS..SSSSSSSSSSSSSSSSSSSSS../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/sandbox/cuda/type.py:541: UserWarning: config.experimental.unpickle_gpu_on_cpu is set to True. Unpickling CudaNdarray as numpy.ndarray warnings.warn("config.experimental.unpickle_gpu_on_cpu is set to True. Unpickling CudaNdarray as numpy.ndarray") .SSSSSSSSSSSS.....KK...................S.....SSSSS.............................................................S.K..............S..........S.......ERROR (theano.gof.opt): SeqOptimizer apply <theano.tensor.opt.FusionOptimizer object at 0x112801990> ERROR (theano.gof.opt): Traceback: ERROR (theano.gof.opt): Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/opt.py", line 195, in apply sub_prof = optimizer.optimize(fgraph) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/opt.py", line 81, in optimize ret = self.apply(fgraph, *args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5498, in apply new_outputs = self.optimizer(node) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5433, in local_fuse n = OP(C)(*inputs).owner File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/elemwise.py", line 496, in __init__ scalar_op.nout) ValueError: Cannot construct a ufunc with more than 32 operands (requested number were: inputs = 33 and outputs = 1) .... . . ........... ..K............SS....K................................/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/scan_module/scan.py:1017: Warning: In the strict mode, all neccessary shared variables must be passed as a part of non_sequences 'must be passed as a part of non_sequences', Warning) ........................................./opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/data.py:61: ComplexWarning: Casting complex values to real discards the imaginary part return self._with_data(self.data.astype(t)) /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/sparse/tests/test_basic.py:2337: ComplexWarning: Casting complex values to real discards the imaginary part expected = data.toarray().astype(o_dtype) ...../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/compressed.py:739: SparseEfficiencyWarning: Changing the sparsity structure of a csc_matrix is expensive. lil_matrix is more efficient. SparseEfficiencyWarning) /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/compressed.py:739: SparseEfficiencyWarning: Changing the sparsity structure of a csr_matrix is expensive. lil_matrix is more efficient. SparseEfficiencyWarning) ............S.........................................S........S........................................../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/csr.py:281: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future. col.step in (1, None) and S......................./opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/sparse/compressed.py:304: SparseEfficiencyWarning: Comparing sparse matrices using >= and <= is inefficient, using <, >, or !=, instead. "using <, >, or !=, instead.", SparseEfficiencyWarning) ...................................S...................................................................................................S..SS......................................./opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/signal/tests/test_conv.py:38: UserWarning: theano.tensor.signal.conv2d() now outputs a 2d tensor when both inputs are 2d. To disable this warning, set the Theano flag warn.signal_conv2d_interface to False output = sym_conv2d(input, filters) ./opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py:331: UserWarning: theano.tensor.signal.conv2d() now outputs a 2d tensor when both inputs are 2d. To disable this warning, set the Theano flag warn.signal_conv2d_interface to False testMethod() ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/tests/test_basic.py:6940: UserWarning: Tile op is deprecated, use tile function instead. [Tile(ndim)(advec, aivec_val)], /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/tests/test_basic.py:6948: UserWarning: Tile op is deprecated, use tile function instead. [Tile(ndim)(admat, aivec_val)], /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/tests/test_basic.py:6956: UserWarning: Tile op is deprecated, use tile function instead. [Tile(ndim)(adtens4, aivec_val)], .............................................................................................K.....................................................................................................................................................................................................................................................................................................................................K..KKKK.K.................................................................................K................................................................../opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/tests/test_opt.py:3466: UserWarning: Tile op is deprecated, use tile function instead. f = theano.function([var], Tile(ndim)(var, (1,)*ndim), mode=mode) ............................S....................................S.S..S......ERROR (theano.gof.opt): SeqOptimizer apply <theano.tensor.opt.FusionOptimizer object at 0x112801990> ERROR (theano.gof.opt): Traceback: ERROR (theano.gof.opt): Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/opt.py", line 195, in apply sub_prof = optimizer.optimize(fgraph) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/opt.py", line 81, in optimize ret = self.apply(fgraph, *args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5498, in apply new_outputs = self.optimizer(node) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5445, in local_fuse ret = local_fuse(n) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5433, in local_fuse n = OP(C)(*inputs).owner File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/elemwise.py", line 496, in __init__ scalar_op.nout) ValueError: Cannot construct a ufunc with more than 32 operands (requested number were: inputs = 32 and outputs = 1) ..SSERROR (theano.gof.opt): SeqOptimizer apply <theano.tensor.opt.FusionOptimizer object at 0x112801990> ERROR (theano.gof.opt): Traceback: ERROR (theano.gof.opt): Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/opt.py", line 195, in apply sub_prof = optimizer.optimize(fgraph) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/gof/opt.py", line 81, in optimize ret = self.apply(fgraph, *args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5498, in apply new_outputs = self.optimizer(node) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/opt.py", line 5433, in local_fuse n = OP(C)(*inputs).owner File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/elemwise.py", line 496, in __init__ scalar_op.nout) ValueError: Cannot construct a ufunc with more than 32 operands (requested number were: inputs = 88 and outputs = 1) .........................................S.......K...........K..............................................................................................E.....................................................................................................................................................................................S/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py:331: UserWarning: consider_constant() is deprecated, use zero_grad() or disconnected_grad() instead. testMethod() ...........................................SS....SSSSS...SSSSS...........KK.......................................................S... ====================================================================== ERROR: test_perform (theano.tensor.tests.test_slinalg.TestKron) ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/theano/tensor/tests/test_slinalg.py", line 310, in test_perform assert numpy.allclose(out, scipy.linalg.kron(a, b)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/linalg/special_matrices.py", line 470, in kron return np.concatenate(np.concatenate(o, axis=1), axis=1) IndexError: axis 1 out of bounds [0, 1) ---------------------------------------------------------------------- Ran 2722 tests in 3690.219s FAILED (KNOWNFAIL=18, SKIP=76, errors=1)
Change History (1)
comment:1 Changed 9 years ago by mf2k (Frank Schima)
Keywords: | theano removed |
---|---|
Owner: | changed from macports-tickets@… to stromnov@… |
Port: | py-theano added; py27-theano removed |
Note: See
TracTickets for help on using
tickets.
In the future, please Cc the port maintainers (
port info --maintainers py27-theano
), if any.