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

tf_agents.specs.array_spec.sample_bounded_spec

Samples the given bounded spec.

spec A BoundedSpec to sample.
rng A numpy RandomState to use for the sampling.

An np.array sample of the requested spec.