tf.placeholder_with_default(input, shape, name=None)
A placeholder op that passes though 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.
For feeding SparseTensor
s which are composite type, there is a convenience function:
Please login to continue.