提交 b7550758 authored 作者: Benjamin Scellier's avatar Benjamin Scellier

file theano/compile/function.py

上级 d4e4f6b3
......@@ -13,7 +13,7 @@ from six import string_types
from theano.compile.io import In
from theano.compile.function_module import orig_function
from theano.compile.pfunc import pfunc
from numpy import any
import numpy as np
import warnings
from theano import compat
......@@ -286,7 +286,7 @@ def function(inputs, outputs=None, mode=None, updates=None, givens=None,
"input.")
# compute some features of the arguments:
uses_tuple = any([isinstance(i, (list, tuple)) for i in inputs])
uses_tuple = np.any([isinstance(i, (list, tuple)) for i in inputs])
uses_updates = bool(updates)
uses_givens = bool(givens)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论