tf.keras.backend.constant

Creates a constant tensor.

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.keras.backend.constant

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.

A Constant Tensor.