Skip to content
fn

buffer_is_elements

bool buffer_is_elements(const TensorImpl & t)

Whether t's own buffer, from its first byte, is its elements in row-major order: a contiguous CPU tensor at offset 0 (a run at the start of a larger buffer included), or a Metal tensor that reads all of its family's root.