Skip to content

Commit

Permalink
black format
Browse files Browse the repository at this point in the history
  • Loading branch information
NTT123 committed Jul 30, 2022
1 parent 23f7d31 commit 4ef2081
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion train_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def collect_self_play_data(
num_simulations_per_move,
)
batch = jax.device_get(batch)
batch = jax.tree_util.tree_map(lambda x: x.reshape((-1, *x.shape[2:])), batch)
batch = jax.tree_util.tree_map(
lambda x: x.reshape((-1, *x.shape[2:])), batch
)
data.extend(prepare_training_data(batch, env=env))
return data

Expand Down

0 comments on commit 4ef2081

Please sign in to comment.