# tf.placeholder_with_default(input, shape, name=None)

### tf.placeholder_with_default(input, shape, name=None)

See the guide: Inputs and Readers > Placeholders

A placeholder op that passes through input when its output is not fed.

#### Args:

• input: A Tensor. The default value to produce when output is not fed.
• shape: A tf.TensorShape or list of ints. The (possibly partial) shape of the tensor.
• name: A name for the operation (optional).

#### Returns:

A Tensor. Has the same type as input. A placeholder tensor that defaults to input if it is not fed.

Defined in tensorflow/python/ops/gen_array_ops.py.