mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
[rllib] Forgot to pass ioctx to child json readers (#11839)
* fix ioctx * fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user