1 from theano
import function, config, shared, sandbox
2 import theano.tensor
as T
9 rng = numpy.random.RandomState(22)
10 x = shared(numpy.asarray(rng.rand(vlen), config.floatX))
12 print(f.maker.fgraph.toposort())
14 for i
in range(iters):
17 print(
"Looping %d times took %f seconds" % (iters, t1 - t0))
18 print(
"Result is %s" % (r,))
19 if numpy.any([isinstance(x.op, T.Elemwise)
for x
in f.maker.fgraph.toposort()]):
void function(int client, int *resource, int parblock, int *test, int p)