W3cubDocs

/TensorFlow 2.4

tf.raw_ops.Placeholder

A placeholder op for a value that will be fed into the computation.

N.B. This operation will fail with an error if it is executed. It is intended as a way to represent a value that will always be fed, and to provide attrs that enable the fed value to be checked at runtime.

Args
dtype A tf.DType. The type of elements in the tensor.
shape An optional tf.TensorShape or list of ints. Defaults to None. (Optional) The shape of the tensor. If the shape has 0 dimensions, the shape is unconstrained.
name A name for the operation (optional).
Returns
A Tensor of type dtype.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/Placeholder