tf.keras.backend.constant

View source

Creates a constant tensor.

Aliases:

  • tf.compat.v1.keras.backend.constant
  • tf.compat.v2.keras.backend.constant
tf.keras.backend.constant(
    value,
    dtype=None,
    shape=None,
    name=None
)

Arguments:

  • value: A constant value (or list)
  • dtype: The type of the elements of the resulting tensor.
  • shape: Optional dimensions of resulting tensor.
  • name: Optional name for the tensor.

Returns:

A Constant Tensor.

results matching ""

    No results matching ""