You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by a duplicate range() call in experiments/irl_trainer.py.
On line 71: self._random_range = range(expert_obs.shape[0])
Then on line 150: indices = random.sample(range(self._random_range), self._irl.batch_size)
Removing this duplicate call resolved the issue for me. As far as I can tell this looks like a bug, as line 150 is the only reference to _random_range.
The text was updated successfully, but these errors were encountered:
peteris-racinskis
changed the title
TypeError: 'range' object cannot be interpreted as an integer when attempting to use the __call__() method of IRLTrainer
"TypeError: 'range' object cannot be interpreted as an integer" when attempting to use the __call__() method of IRLTrainer
Apr 7, 2022
ymd-h
added a commit
to ymd-h/tf2rl
that referenced
this issue
Apr 7, 2022
Caused by a duplicate range() call in experiments/irl_trainer.py.
On line 71:
self._random_range = range(expert_obs.shape[0])
Then on line 150:
indices = random.sample(range(self._random_range), self._irl.batch_size)
Removing this duplicate call resolved the issue for me. As far as I can tell this looks like a bug, as line 150 is the only reference to _random_range.
The text was updated successfully, but these errors were encountered: