This symbol is a type alias.
Source:
SpecTensorOrArray = Union[
tensorflow.python.framework.type_spec.TypeSpec,
tensorflow.python.framework.tensor.TensorSpec,
tensorflow.python.ops.ragged.ragged_tensor.RaggedTensorSpec,
tensorflow.python.framework.sparse_tensor.SparseTensorSpec,
tf_agents.types.DistributionSpecV2
,
tf_agents.types.ArraySpec
,
tensorflow.python.framework.tensor.Tensor,
tensorflow.python.framework.sparse_tensor.SparseTensor,
tensorflow.python.ops.ragged.ragged_tensor.RaggedTensor,
tensorflow.python.framework.ops.EagerTensor,
numpy.ndarray,
int,
float,
str,
bool
]