提交 fe2f6fc5 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

after the rebase, I think this commit is empty. not sure how to clear it

out
上级 547e54c8
...@@ -2409,9 +2409,10 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp): ...@@ -2409,9 +2409,10 @@ class GpuIncSubtensor(tensor.IncSubtensor, GpuOp):
""" """
Implement IncSubtensor on the gpu. Implement IncSubtensor on the gpu.
""" """
def make_node(self, x, y, *inputs): def make_node(self, x, y, *inputs):
assert isinstance(x.type, CudaNdarrayType) x = as_cuda_ndarray_variable(x)
assert isinstance(y.type, CudaNdarrayType) y = as_cuda_ndarray_variable(y)
rval = tensor.IncSubtensor.make_node(self, x, y, *inputs) rval = tensor.IncSubtensor.make_node(self, x, y, *inputs)
return Apply(self, [x, y] + rval.inputs[2:], [x.type()]) return Apply(self, [x, y] + rval.inputs[2:], [x.type()])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论