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


Validates action_spec and returns number of actions.

action_spec must specify a scalar int32 or int64 with minimum zero.

action_spec a BoundedTensorSpec.

The number of actions described by action_spec.

ValueError if action_spec is not an bounded scalar int32 or int64 spec with minimum 0.