Module Space.Discrete
#
type element = Nx.host Nx.int32_tDiscrete action represented as a scalar int32 tensor.
create ?start n is a discrete space with n choices in the range [start; start + n - 1]. start defaults to 0.
Raises Invalid_argument if n <= 0.
n s is the number of choices in s.
Raises Invalid_argument if s is not a discrete space.
start s is the starting value of s.
Raises Invalid_argument if s is not a discrete space.