We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TensorType
1 parent 1e5094f commit e0d8e6fCopy full SHA for e0d8e6f
rllib/utils/typing.py
@@ -39,8 +39,8 @@
39
jnp = jax.numpy
40
41
# 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"]
+# This could be an np.ndarray, jnp.ndarray, tf.Tensor, or a torch.Tensor.
+TensorType = Union[np.ndarray, "jnp.ndarray", "tf.Tensor", "torch.Tensor"]
44
45
# Either a plain tensor, or a dict or tuple of tensors (or StructTensors).
46
TensorStructType = Union[TensorType, dict, tuple]
0 commit comments