Package: python3-theano
Version: 1.0.4-1
Severity: serious
Justification: at least one looks like a silently wrong answer

The tests passed (at least on amd64) when 1.0.4-1 was first uploaded, but 9 tests failed when it was rebuilt as 1.0.4-1+b1 (for Python 3.8, but I suspect the actual cause was numpy 1.17), and also fail in the 1.0.4-2 currently in salsa.

These failures don't fail the build (which is a bug in itself).

======================================================================
ERROR: test2 (theano.tensor.tests.test_sort.Test_sort)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/compile/function_module.py", line 903, in __call__
    self.fn() if output_subset is None else\
  File "/build/theano-1.0.4+dfsg/theano/gof/op.py", line 892, in rval
    r = p(n, [x[0] for x in i], o)
File "/build/theano-1.0.4+dfsg/theano/tensor/sort.py", line 49, in perform
    z[0] = np.sort(a, axis, self.kind, self.order)
  File "<__array_function__ internals>", line 5, in sort
File "/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py", line 970, in sort
    a.sort(axis=axis, kind=kind, order=order)
TypeError: only integer scalar arrays can be converted to a scalar index

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_sort.py", line 44, in test2
    gv = f(self.m_val, axis_val)
File "/build/theano-1.0.4+dfsg/theano/compile/function_module.py", line 914, in __call__
    gof.link.raise_with_op(
File "/build/theano-1.0.4+dfsg/theano/gof/link.py", line 325, in raise_with_op
    reraise(exc_type, exc_value, exc_trace)
  File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
File "/build/theano-1.0.4+dfsg/theano/compile/function_module.py", line 903, in __call__
    self.fn() if output_subset is None else\
  File "/build/theano-1.0.4+dfsg/theano/gof/op.py", line 892, in rval
    r = p(n, [x[0] for x in i], o)
File "/build/theano-1.0.4+dfsg/theano/tensor/sort.py", line 49, in perform
    z[0] = np.sort(a, axis, self.kind, self.order)
  File "<__array_function__ internals>", line 5, in sort
File "/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py", line 970, in sort
    a.sort(axis=axis, kind=kind, order=order)
TypeError: only integer scalar arrays can be converted to a scalar index
Apply node that caused the error: SortOp{quicksort, None}(<TensorType(float64, matrix)>, <TensorType(float64, scalar)>)
Toposort index: 0
Inputs types: [TensorType(float64, matrix), TensorType(float64, scalar)]
Inputs shapes: [(3, 2), ()]
Inputs strides: [(16, 8), ()]
Inputs values: ['not shown', array(0.)]
Outputs clients: [['output']]

Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
  File "/usr/lib/python3/dist-packages/nose/suite.py", line 224, in run
    test(orig)
  File "/usr/lib/python3/dist-packages/nose/case.py", line 45, in __call__
    return self.run(*arg, **kwarg)
  File "/usr/lib/python3/dist-packages/nose/case.py", line 133, in run
    self.runTest(result)
  File "/usr/lib/python3/dist-packages/nose/case.py", line 151, in runTest
    test(result)
  File "/usr/lib/python3.8/unittest/case.py", line 736, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/usr/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_sort.py", line 41, in test2
    w = sort(a, axis)

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

======================================================================
ERROR: test4 (theano.tensor.tests.test_sort.Test_sort)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/compile/function_module.py", line 903, in __call__
    self.fn() if output_subset is None else\
  File "/build/theano-1.0.4+dfsg/theano/gof/op.py", line 892, in rval
    r = p(n, [x[0] for x in i], o)
File "/build/theano-1.0.4+dfsg/theano/tensor/sort.py", line 49, in perform
    z[0] = np.sort(a, axis, self.kind, self.order)
  File "<__array_function__ internals>", line 5, in sort
File "/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py", line 970, in sort
    a.sort(axis=axis, kind=kind, order=order)
TypeError: only integer scalar arrays can be converted to a scalar index

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_sort.py", line 62, in test4
    gv = f(self.m_val, axis_val)
File "/build/theano-1.0.4+dfsg/theano/compile/function_module.py", line 914, in __call__
    gof.link.raise_with_op(
File "/build/theano-1.0.4+dfsg/theano/gof/link.py", line 325, in raise_with_op
    reraise(exc_type, exc_value, exc_trace)
  File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
File "/build/theano-1.0.4+dfsg/theano/compile/function_module.py", line 903, in __call__
    self.fn() if output_subset is None else\
  File "/build/theano-1.0.4+dfsg/theano/gof/op.py", line 892, in rval
    r = p(n, [x[0] for x in i], o)
File "/build/theano-1.0.4+dfsg/theano/tensor/sort.py", line 49, in perform
    z[0] = np.sort(a, axis, self.kind, self.order)
  File "<__array_function__ internals>", line 5, in sort
File "/usr/lib/python3/dist-packages/numpy/core/fromnumeric.py", line 970, in sort
    a.sort(axis=axis, kind=kind, order=order)
TypeError: only integer scalar arrays can be converted to a scalar index
Apply node that caused the error: SortOp{mergesort, None}(<TensorType(float64, matrix)>, <TensorType(float64, scalar)>)
Toposort index: 0
Inputs types: [TensorType(float64, matrix), TensorType(float64, scalar)]
Inputs shapes: [(3, 2), ()]
Inputs strides: [(16, 8), ()]
Inputs values: ['not shown', array(0.)]
Outputs clients: [['output']]

Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
  File "/usr/lib/python3/dist-packages/nose/suite.py", line 224, in run
    test(orig)
  File "/usr/lib/python3/dist-packages/nose/case.py", line 45, in __call__
    return self.run(*arg, **kwarg)
  File "/usr/lib/python3/dist-packages/nose/case.py", line 133, in run
    self.runTest(result)
  File "/usr/lib/python3/dist-packages/nose/case.py", line 151, in runTest
    test(result)
  File "/usr/lib/python3.8/unittest/case.py", line 736, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/usr/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_sort.py", line 59, in test4
    l = sort(a, axis, "mergesort")

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

======================================================================
ERROR: theano.tensor.tests.test_var.test_numpy_method
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_var.py", line 23, in test_numpy_method
    y = fct(x)
TypeError: must be real number, not TensorVariable

======================================================================
FAIL: test_good (theano.tensor.tests.test_basic.ClipTester)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_basic.py", line 410, in test_good
    self.fail(("Test %s::%s: Output %s gave the wrong"
AssertionError: Test Elemwise{clip,no_inplace}::correct7: Output 0 gave the wrong value. With inputs [array([[-1.70586872, 2.46664369, -0.52189608, 4.84714482, 1.9208813 ],
       [ 1.28983643, -2.38914901, -1.67933224,  2.10808673,  3.58489085],
       [ 4.45900732, -3.70413992, -3.7683781 ,  1.87495988, -2.58993616],
       [-2.6853165 ,  2.19925062,  2.69281351,  1.39211517,  1.29298677],
[ 4.43245431, 3.63622689, -2.58812035, -3.32239248, 0.24149971]]), array(1.), array(-1.)], expected [[-1. -1. -1. -1. -1.]
 [-1. -1. -1. -1. -1.]
 [-1. -1. -1. -1. -1.]
 [-1. -1. -1. -1. -1.]
 [-1. -1. -1. -1. -1.]] (dtype float64), got [[ 1. -1.  1. -1. -1.]
 [-1.  1.  1. -1. -1.]
 [-1.  1.  1. -1.  1.]
 [ 1. -1. -1. -1. -1.]
[-1. -1. 1. 1. 1.]] (dtype float64). eps=0.000000 np.allclose returns False False

======================================================================
FAIL: test_scan_err1 (theano.gof.tests.test_compute_test_value.TestComputeTestValue)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/gof/tests/test_compute_test_value.py", line 279, in test_scan_err1
    theano.scan(
ValueError: shapes (5,3) and (5,3) not aligned: 3 (dim 1) != 5 (dim 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/gof/tests/test_compute_test_value.py", line 292, in test_scan_err1
    assert os.path.split(frame_info[0])[1] == expected, frame_info
AssertionError: <FrameSummary file /build/theano-1.0.4+dfsg/theano/tensor/basic.py, line 6105 in dot>

======================================================================
FAIL: test_vector_arguments (theano.tensor.tests.test_raw_random.T_random_function)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_raw_random.py", line 681, in test_vector_arguments
    self.assertRaises(ValueError, fc, post1c, [-4., -2], [-1, 0], [1])
AssertionError: ValueError not raised by <theano.compile.function_module.Function object at 0x7f13d9277fd0>

======================================================================
FAIL: test_vector_arguments (theano.tensor.tests.test_shared_randomstreams.T_SharedRandomStreams)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/tensor/tests/test_shared_randomstreams.py", line 469, in test_vector_arguments
    self.assertRaises(ValueError, fc, [-4., -2], [-1, 0], [1])
AssertionError: ValueError not raised by <theano.compile.function_module.Function object at 0x7f13e5b898b0>

======================================================================
FAIL: test_remove0 (theano.sparse.tests.test_basic.Remove0Tester)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/sparse/tests/test_basic.py", line 2051, in test_remove0
    (x,), (mat,) = sparse_random_inputs(format, (6, 8),
File "/build/theano-1.0.4+dfsg/theano/sparse/tests/test_basic.py", line 164, in sparse_random_inputs
    assert not d.has_sorted_indices
AssertionError

======================================================================
FAIL: test_csm_unsorted (theano.sparse.tests.test_basic.test_csm)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/theano-1.0.4+dfsg/theano/sparse/tests/test_basic.py", line 1049, in test_csm_unsorted
    a = sparse_random_inputs(format, (8, 6), out_dtype=dtype,
File "/build/theano-1.0.4+dfsg/theano/sparse/tests/test_basic.py", line 164, in sparse_random_inputs
    assert not d.has_sorted_indices
AssertionError

----------------------------------------------------------------------
Ran 9 tests in 9.293s

FAILED (errors=3, failures=6)

Reply via email to