Update theano test for theano 0.9.
This commit is contained in:
parent
51855d1ed2
commit
d55f2d8da2
11
sympy-theano.patch
Normal file
11
sympy-theano.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- sympy/printing/tests/test_theanocode.py.orig 2016-03-08 11:35:33.000000000 -0700
|
||||
+++ sympy/printing/tests/test_theanocode.py 2017-04-01 21:32:35.092097881 -0600
|
||||
@@ -243,7 +243,7 @@ def test_DenseMatrix():
|
||||
X = MatrixType([[sy.cos(t), -sy.sin(t)], [sy.sin(t), sy.cos(t)]])
|
||||
tX = theano_code(X)
|
||||
assert isinstance(tX, tt.TensorVariable)
|
||||
- assert tX.owner.op == tt.join
|
||||
+ assert tX.owner.op == tt.join_
|
||||
|
||||
def test_AppliedUndef():
|
||||
t = sy.Symbol('t')
|
@ -1,6 +1,6 @@
|
||||
Name: sympy
|
||||
Version: 1.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: A Python library for symbolic mathematics
|
||||
License: BSD
|
||||
URL: http://sympy.org/
|
||||
@ -11,6 +11,8 @@ Patch0: sympy-test.patch
|
||||
Patch1: sympy-matplotlib2.patch
|
||||
# Fix for tests failing because numpy gets an array of Float objects
|
||||
Patch2: sympy-test_args.patch
|
||||
# Fix building with Theano 0.9
|
||||
Patch3: sympy-theano.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -118,6 +120,7 @@ fi
|
||||
# Fix a test failure
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
|
||||
# Disable some broken tests
|
||||
# https://github.com/sympy/sympy/issues/10788
|
||||
@ -248,6 +251,9 @@ popd
|
||||
%{_docdir}/%{name}-doc/html
|
||||
|
||||
%changelog
|
||||
* Sat Apr 1 2017 Jerry James <loganjerry@gmail.com> - 1.0-7
|
||||
- Update theano test for theano 0.9
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user