In the theanorc file, they should be like this:

[global]
mode=DebugMode
[DebugMode]
check_preallocated_output=ALL

The syntax isn't the same, but it is related.


On Tue, Jan 28, 2014 at 4:08 PM, Marc-Alexandre Côté <
notifications@github.com> wrote:

> In theano/tensor/tests/test_extra_ops.py:
>
> > +
> > +    def setUp(self):
> > +        super(TestCumsumOp, self).setUp()
> > +        self.op_class = CumsumOp
> > +        self.op = CumsumOp()
> > +
> > +    def test_cumsumOp(self):
> > +        x = T.tensor3('x')
> > +        a = np.random.random((3, 5, 2)).astype(config.floatX)
> > +        b = np.random.random((30, 5, 2)).astype(config.floatX)
> > +
> > +        f = theano.function([x], cumsum(x), mode="DebugMode")
> > +        assert np.allclose(np.cumsum(a), f(a))  # Test axis=None
> > +
> > +        # Test without garbage collector
> > +        f = theano.function([x], cumsum(x).sum(), mode=theano.compile.Mode(linker="cvm_nogc", optimizer="fast_run") )
>
> I've added these flags
> (mode=DebugMode,DebugMode.check_preallocated_output=ALL) in my .theanorc.
> Then changed cumsum(x).sum() to cumsum(x). When I run the tests, it still
> prints (nil) each time the C function is called.
>
> Maybe I didn't understand what @nouiz <https://github.com/nouiz> said.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Theano/Theano/pull/1700/files#r9244612>
> .
>