Skip to content

Commit

Permalink
fix: add space
Browse files Browse the repository at this point in the history
  • Loading branch information
BioGeek committed Jan 26, 2024
1 parent 529ddf6 commit d706940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qdax/core/emitters/omg_mega_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class OMGMEGAEmitter(Emitter):
times. One solution that we are discussing and that is very similar to the first
solution discussed above, would be to decompose the addition mechanism in two
phases: one outputting the indices at which individuals will be added, and then
the actual insertion step. This would enable to reusethe same indices to add
the actual insertion step. This would enable to reuse the same indices to add
the gradients instead of having to recompute them.
The two design choices seem acceptable and enable to have OMG MEGA compatible
Expand Down
2 changes: 1 addition & 1 deletion qdax/environments/pointmaze.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def reset(self, rng: jp.ndarray) -> State:
x_init = jp.random_uniform(rng1, (), low=self._x_min, high=self._x_max) / 10
y_init = jp.random_uniform(rng2, (), low=self._y_min, high=-0.7)
obs_init = jp.array([x_init, y_init])
# create fake qp (to reusebrax.State)
# create fake qp (to reuse brax.State)
fake_qp = brax.QP.zero()
# init reward, metrics and infos
reward, done = jp.zeros(2)
Expand Down

0 comments on commit d706940

Please sign in to comment.