Tune in to the first Women in ML Symposium this Tuesday, October 19 at 9am PST Register now

tf.keras.backend.constant

TensorFlow 2 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.