HF RL Explorer

product index raises TypeError when given iterator inputs

product index raises TypeError when given iterator inputs: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling product index with iterator arguments, a TypeError is raised because the function tries to call len() on the original iterator rather than on the already-converted tuple.

Part of FineEnvs/repo2rlenv-r2e-gym.