tf.placeholder_with_default
tf.placeholder_with_default
tf.placeholder_with_default
placeholder_with_default( input, shape, name=None )
Defined in tensorflow/python/ops/gen_array_ops.py
.
See the guide: Inputs and Readers > Placeholders
A placeholder op that passes through input
when its output is not fed.
Args:
-
input
: ATensor
. The default value to produce whenoutput
is not fed. -
shape
: Atf.TensorShape
or list ofints
. 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.
© 2017 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/api_docs/python/tf/placeholder_with_default