[rllib] Forgot to pass ioctx to child json readers (#11839)

* fix ioctx

* fix
This commit is contained in:
Eric Liang 2020-11-05 22:07:57 -08:00 committed by GitHub
parent 28e7439cf0
commit 6b7a4dfaa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ class DreamerIteration:
metrics = _get_shared_metrics()
metrics.info[LEARNER_INFO] = fetches
metrics.counters[STEPS_SAMPLED_COUNTER] = self.episode_buffer.timesteps
metrics.counter[STEPS_SAMPLED_COUNTER] *= self.repeat
metrics.counters[STEPS_SAMPLED_COUNTER] *= self.repeat
res = collect_metrics(local_worker=self.worker)
res["info"] = metrics.info
res["info"].update(metrics.counters)

View file

@ -37,7 +37,7 @@ class MixedInput(InputReader):
if k == "sampler":
self.choices.append(ioctx.default_sampler_input())
else:
self.choices.append(JsonReader(k))
self.choices.append(JsonReader(k, ioctx))
self.p.append(v)
@override(InputReader)