This commit is contained in:
Peter Zhokhov
2018-11-14 12:16:53 -08:00
parent c5b1a1b643
commit 87b3a04a38

View File

@@ -168,7 +168,7 @@ def function(inputs, outputs, updates=None, givens=None):
updates: [tf.Operation] or tf.Operation updates: [tf.Operation] or tf.Operation
list of update functions or single update function that will be run whenever list of update functions or single update function that will be run whenever
the function is called. The return is ignored. the function is called. The return is ignored.
""" """
if isinstance(outputs, list): if isinstance(outputs, list):
return _Function(inputs, outputs, updates, givens=givens) return _Function(inputs, outputs, updates, givens=givens)