Skip to content

action_indices_bytes ​

python
action_indices_bytes(action_indices: Sequence[int | np.integer] | bytes | bytearray | None) -> bytes | None

Convert action indices into the raw byte payload used by the unsafe enqueue path.

Parameters:

  • action_indices (Sequence[int | integer] | bytes | bytearray | None) – The action indices, or None.

Returns:

  • bytes | None – The byte payload, or None when no indices were given.

Source