提交 4fc8b90f authored 作者: James Bergstra's avatar James Bergstra

merge

...@@ -69,7 +69,7 @@ def numpy_wrapper(f): ...@@ -69,7 +69,7 @@ def numpy_wrapper(f):
for thunk in thunks: for thunk in thunks:
for output in thunk.outputs: for output in thunk.outputs:
if hasattr(output, 'dtype'): if hasattr(output, 'dtype'):
if f(output)): if f(output):
raise Exception('uh oh', (thunk, output)) raise Exception('uh oh', (thunk, output))
return wrapper return wrapper
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论