Skip array_spec conversion if the given spec is already an array_spec.
Skip array_spec conversion if the given spec is already an array_spec.

PiperOrigin-RevId: 337199800
Change-Id: Ia7cc6e85ac780cd2c726e5828f503ec172896c35

tensorflow/agents,tensorflow/agents