提交 d0f13844 authored 作者: abergeron's avatar abergeron

Fix syntax error.

上级 a87cca23
...@@ -444,7 +444,7 @@ def as_op(itypes, otypes, infer_shape=None): ...@@ -444,7 +444,7 @@ def as_op(itypes, otypes, infer_shape=None):
raise TypeError("itypes has to be a list of theano types") raise TypeError("itypes has to be a list of theano types")
if not isinstance(otypes, (list, tuple)): if not isinstance(otypes, (list, tuple)):
otypes = [otypes] otypes = [otypes]
if any(not isinstance(t, theano.Type) for t in otypes)): if any(not isinstance(t, theano.Type) for t in otypes):
raise TypeError("otypes has to be a list of theano types") raise TypeError("otypes has to be a list of theano types")
# make sure they are lists and not tuples # make sure they are lists and not tuples
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论