Skip to content

Commit

Permalink
Fix not using context_name in local_gpu_elemwise
Browse files Browse the repository at this point in the history
  • Loading branch information
carriepl committed Nov 25, 2015
1 parent 9d6615e commit 11bc459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theano/sandbox/gpuarray/opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ def local_gpu_elemwise(node, context_name):
for inp in node.inputs:
if inp.dtype != out_dtype:
gpu_cast_op = GpuElemwise(Cast(Scalar(out_dtype)))
new_inputs.append(gpu_cast_op(as_gpuarray_variable(inp)))
new_inputs.append(gpu_cast_op(as_gpuarray_variable(inp, context_name)))
else:
new_inputs.append(as_gpuarray_variable(inp))
new_inputs.append(as_gpuarray_variable(inp, context_name))

# Perform the exponent on the gpu and transfer the output back to the
# cpu.
Expand Down

0 comments on commit 11bc459

Please sign in to comment.