View source on GitHub |
Creates a placeholder from TensorSpec.
tf_agents.specs.tensor_spec.to_placeholder(
spec, outer_dims=()
)
Args | |
---|---|
spec
|
instance of TensorSpec |
outer_dims
|
optional leading dimensions of the placeholder. |
Returns | |
---|---|
An instance of tf.placeholder. |