Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
markub3327 committed Nov 17, 2023
1 parent c1b0ea2 commit e4693a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rl_toolkit/networks/models/dueling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import tensorflow as tf
import numpy as np
from tensorflow.keras import Model
from tensorflow.keras.initializers import Orthogonal, TruncatedNormal
from tensorflow.keras.layers import (
Expand Down Expand Up @@ -215,7 +216,7 @@ def _compute_n_step_rewards(
# element_shape=(tf.shape(rewards)[0], tf.shape(rewards)[1]),
)

for i in range(n):
for i in np.arange(n):
value = tf.slice(padded_rewards, [0, i], [-1, tf.shape(rewards)[1]])
print(f"value: {value}")
windows = windows.write(i, value)
Expand Down

0 comments on commit e4693a9

Please sign in to comment.