提交 791b628b authored 作者: Frederic's avatar Frederic

Fix crash introduced recently

上级 e2775418
...@@ -34,7 +34,7 @@ _logger = logging.getLogger(_logger_name) ...@@ -34,7 +34,7 @@ _logger = logging.getLogger(_logger_name)
def as_cuda_ndarray_variable(x): def as_cuda_ndarray_variable(x):
if x.owner: if getattr(x, 'owner', None):
if isinstance(x.owner.op, HostFromGpu): if isinstance(x.owner.op, HostFromGpu):
return x.owner.inputs[0] return x.owner.inputs[0]
elif (isinstance(x.owner.op, GpuFromHost) and elif (isinstance(x.owner.op, GpuFromHost) and
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论