changeset 529:4e3629a894fa

the function compile.eval_outputs was retired. Now use function instead.
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 17 Nov 2008 14:15:19 -0500
parents cfe3f62a08cb
children 844bad76459c
files _test_xlogx.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):