concat_aligned#
- ray.rllib.utils.numpy.concat_aligned(items: List[ndarray], time_major: bool | None = None) ndarray[source]#
Concatenate arrays, ensuring the output is 64-byte aligned.
We only align float arrays; other arrays are concatenated as normal.
This should be used instead of np.concatenate() to improve performance when the output array is likely to be fed into TensorFlow.