tf_agents.specs.tensor_spec.to_array_spec

Converts TensorSpec into ArraySpec.