HF RL Explorer

constrained batches silently accepts non-positive max count values

constrained batches silently accepts non-positive max count values: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). The constrained batches function accepts a max count argument to limit the number of items per batch. However, passing a value of 0 or a negative integer (e.g., -1 ) does not…

The task

The `constrained_batches` function accepts a `max_count` argument to limit the number of items per batch. However, passing a value of `0` or a negative integer (e.g., `-1`) does not raise any error — the function just silently accepts these nonsensical values.

Part of FineEnvs/repo2rlenv-r2e-gym.