triton.language.ravel

triton.language.ravel(x)

Returns a contiguous flattened view of x.

Parameters:

x (Block) – the input tensor

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