Parameter documentation for tf_util.function (#349)

* Added parameter documentation

This parameter was thus far not documented and is non-intuitive when unfamiliar with tf.

* Added parameter documentation
This commit is contained in:
JohannesAck
2018-11-14 06:03:48 +09:00
committed by pzhokhov
parent 5cd66010dc
commit c59a10947d

View File

@@ -165,6 +165,10 @@ def function(inputs, outputs, updates=None, givens=None):
outputs: [tf.Variable] or tf.Variable
list of outputs or a single output to be returned from function. Returned
value will also have the same shape.
updates: [tf.Operation] or tf.Operation
list of update functions or single update function that will be run whenever
the function is called. The return is ignored.
"""
if isinstance(outputs, list):
return _Function(inputs, outputs, updates, givens=givens)