Skip to content

Commit e0d8e6f

Browse files
[RLlib] - Fix TensorType (#55694)
1 parent 1e5094f commit e0d8e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rllib/utils/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
jnp = jax.numpy
4040

4141
# Represents a generic tensor type.
42-
# This could be an np.ndarray, tf.Tensor, or a torch.Tensor.
43-
TensorType = Union[np.array, "jnp.ndarray", "tf.Tensor", "torch.Tensor"]
42+
# This could be an np.ndarray, jnp.ndarray, tf.Tensor, or a torch.Tensor.
43+
TensorType = Union[np.ndarray, "jnp.ndarray", "tf.Tensor", "torch.Tensor"]
4444

4545
# Either a plain tensor, or a dict or tuple of tensors (or StructTensors).
4646
TensorStructType = Union[TensorType, dict, tuple]

0 commit comments

Comments
 (0)