提交 de5e3064 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Don't duplicate ifs

上级 ff91f22e
...@@ -533,8 +533,7 @@ class GpuAdvancedSubtensor(HideC, tensor.AdvancedSubtensor): ...@@ -533,8 +533,7 @@ class GpuAdvancedSubtensor(HideC, tensor.AdvancedSubtensor):
# position. Mark this by faking that there # position. Mark this by faking that there
# are more than two arrays. This is crazy # are more than two arrays. This is crazy
# numpy behaviour so blame them. # numpy behaviour so blame them.
if narrays == 0: narrays = 2
narrays = 2
except Exception: except Exception:
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论