ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.backend.constant

TensorFlow 1 version View source on GitHub

Creates a constant tensor.

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.