提交 3fd0c6ec authored 作者: Ziye Fan's avatar Ziye Fan

remove backslash

上级 9bdd3a7b
...@@ -37,10 +37,9 @@ def as_cuda_ndarray_variable(x): ...@@ -37,10 +37,9 @@ def as_cuda_ndarray_variable(x):
if x.owner: if x.owner:
if isinstance(x.owner.op, HostFromGpu): if isinstance(x.owner.op, HostFromGpu):
return x.owner.inputs[0] return x.owner.inputs[0]
elif \ elif (isinstance(x.owner.op, GpuFromHost) and
isinstance(x.owner.op, GpuFromHost) and \ x.owner.inputs[0].owner and
x.owner.inputs[0].owner and \ isinstance(x.owner.inputs[0].owner.op, HostFromGpu)):
isinstance(x.owner.inputs[0].owner.op, HostFromGpu):
return x.owner.inputs[0].owner.inputs[0] return x.owner.inputs[0].owner.inputs[0]
if hasattr(x, '_as_CudaNdarrayVariable'): if hasattr(x, '_as_CudaNdarrayVariable'):
return x._as_CudaNdarrayVariable() return x._as_CudaNdarrayVariable()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论