ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf_agents.specs.tensor_spec.to_placeholder_with_default

Creates a placeholder from TensorSpec.

default A constant value of output type dtype.
spec Instance of TensorSpec
outer_dims Optional leading dimensions of the placeholder.

An instance of tf.placeholder.