1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: fix for the tests passing on python3 on i386
Bug-Debian: https://bugs.debian.org/831540
Forwarded: https://github.com/Theano/Theano/issues/5498
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
--- a/theano/tensor/tests/test_basic.py
+++ b/theano/tensor/tests/test_basic.py
@@ -6672,11 +6672,11 @@
assert scalar_ct.value == val
vector_ct = constant([val, val])
- assert vector_ct.dtype == 'int64'
+ assert vector_ct.dtype in ('int32','int64')
assert numpy.all(vector_ct.value == val)
matrix_ct = constant([[val, val]])
- assert matrix_ct.dtype == 'int64'
+ assert matrix_ct.dtype in ('int32','int64')
assert numpy.all(matrix_ct.value == val)
def test_too_big(self):
|