mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[rllib] Forgot to pass ioctx to child json readers (#11839)
* fix ioctx * fix
This commit is contained in:
parent
28e7439cf0
commit
6b7a4dfaa0
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue