# HG changeset patch # User Frederic Bastien # Date 1226949319 18000 # Node ID 4e3629a894fa1e36cfa0bf32771742d8decc3d3b # Parent cfe3f62a08cbb15adf67f578e3c0af707ccee343 the function compile.eval_outputs was retired. Now use function instead. diff -r cfe3f62a08cb -r 4e3629a894fa _test_xlogx.py --- a/_test_xlogx.py Mon Nov 17 13:17:00 2008 -0500 +++ b/_test_xlogx.py Mon Nov 17 14:15:19 2008 -0500 @@ -1,9 +1,10 @@ from xlogx import xlogx import unittest + from theano import compile from theano import gradient - +from theano import function from theano.tensor import as_tensor import theano.tensor.basic as TT @@ -14,8 +15,8 @@ def test0(self): x = as_tensor([1, 0]) y = xlogx(x) - y = compile.eval_outputs([y]) - self.failUnless(numpy.all(y == numpy.asarray([0, 0.]))) + f = function([],y) + self.failUnless(numpy.all(f() == numpy.asarray([0, 0.]))) def test1(self): class Dummy(object): def make_node(self, a):