Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf_agents.specs.tensor_spec.to_placeholder

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.