Skip to content

Commit

Permalink
Merge pull request #9 from rll-research/proto_fix
Browse files Browse the repository at this point in the history
fix proto
  • Loading branch information
denisyarats authored Dec 21, 2021
2 parents a81aed0 + 089e155 commit bb98f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def compute_intr_reward(self, obs, step):
# enqueue candidates
ptr = self.queue_ptr
self.queue[ptr:ptr + self.num_protos] = z[candidates]
queue_ptr = (ptr + self.num_protos) % self.queue.shape[0]
self.queue_ptr = (ptr + self.num_protos) % self.queue.shape[0]

# compute distances between the batch and the queue of candidates
z_to_q = torch.norm(z[:, None, :] - self.queue[None, :, :], dim=2, p=2)
Expand Down

0 comments on commit bb98f0c

Please sign in to comment.