unilab.base.reset_selectors.resolve_reset_env_ids¶
- unilab.base.reset_selectors.resolve_reset_env_ids(selector, *, num_envs, device, owner)[source]¶
Normalize a public reset selector to an int64 row-index tensor.
Noneselects every row; a slice selectsarange(num_envs)[slice]; an integer tensor is validated and moved ontodevice. Fixed-width bool masks are rejected: the v1.4 mask form was removed in v1.5.