We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a661a56 commit 76f7e24Copy full SHA for 76f7e24
breze/arch/util.py
@@ -421,14 +421,13 @@ def _unify_exprs(self, exprs):
421
if isinstance(exprs, (str, unicode)):
422
# We are only being given a single string expression.
423
exprs = self.exprs[exprs]
424
- elif isinstance(exprs, theano.tensor.basic.TensorVariable):
425
- # TODO: does this work in case of the GPU?
426
- exprs = exprs
427
- else:
+ elif isinstance(exprs, list):
428
# We have several, either string or variable, thus make it a list
429
# and substitute the strings.
430
exprs = list(exprs)
431
exprs = [self.exprs[i] if isinstance(i, str) else i for i in exprs]
+ else:
+ exprs = exprs
432
433
return exprs
434
0 commit comments