Skip to content

Commit 4a918a9

Browse files
committed
this branch's way of trying to fix #40 and #43
1 parent c3dc4b5 commit 4a918a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: breze/arch/util.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import theano
88
import theano.tensor as T
99
import theano.sandbox.cuda
10+
import theano.sandbox.cuda.var
1011
import theano.misc.gnumpy_utils as gput
1112

1213
from breze.utils import dictlist
@@ -399,7 +400,10 @@ def _init_exprs(self):
399400
pass
400401

401402
def _lookup(self, container, ident):
402-
if isinstance(ident, theano.tensor.basic.TensorVariable):
403+
tensor_types = (theano.tensor.basic.TensorVariable,
404+
theano.sandbox.cuda.var.CudaNdarrayVariable)
405+
406+
if isinstance(ident, tensor_types):
403407
res = ident
404408
elif isinstance(ident, tuple):
405409
res = dictlist.get(container, ident)

0 commit comments

Comments
 (0)