Skip to content

Commit

Permalink
Merge 24a78e1 into 9b2f58f
Browse files Browse the repository at this point in the history
  • Loading branch information
muupan committed Aug 26, 2019
2 parents 9b2f58f + 24a78e1 commit 2f384ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chainerrl/agents/categorical_dqn.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def _apply_categorical_projection(y, y_probs, z):
assert u.shape == (batch_size, n_atoms)

if cuda.available and xp is cuda.cupy:
scatter_add = xp.scatter_add
import cupyx
scatter_add = cupyx.scatter_add
else:
scatter_add = np.add.at

Expand Down

0 comments on commit 2f384ff

Please sign in to comment.