tf.keras.backend.function

View source

Instantiates a Keras function.

Aliases:

  • tf.compat.v1.keras.backend.function
  • tf.compat.v2.keras.backend.function
tf.keras.backend.function(
    inputs,
    outputs,
    updates=None,
    name=None,
    **kwargs
)

Arguments:

  • inputs: List of placeholder tensors.
  • outputs: List of output tensors.
  • updates: List of update ops.
  • name: String, name of function.
  • **kwargs: Passed to tf.Session.run.

Returns:

Output values as Numpy arrays.

Raises:

  • ValueError: if invalid kwargs are passed in or if in eager execution.

results matching ""

    No results matching ""