triton.language.ravel

triton.language.ravel(x, can_reorder=False)

Returns a contiguous flattened view of x.

Parameters:
  • x (Block) – the input tensor

  • can_reorder – Ignored. Retained for backward compatibility.

This function can also be called as a member function on tensor, as x.ravel(...) instead of ravel(x, ...).