View source on GitHub |
Creates a placeholder from TensorSpec.
tf_agents.specs.tensor_spec.to_placeholder_with_default(
default, spec, outer_dims=()
)
Args | |
---|---|
default
|
A constant value of output type dtype. |
spec
|
Instance of TensorSpec |
outer_dims
|
Optional leading dimensions of the placeholder. |
Returns | |
---|---|
An instance of tf.placeholder. |