triton.extension.buffer.language.buffer

class triton.extension.buffer.language.buffer(handle, buffer_ty: buffer_type)

Represents a region of memory.

buffer is the fundamental data structure for Triton programs using the buffer language extension. Most functions in triton.extension.buffer.language operate on and return buffers.

Most of the named member functions here are duplicates of the free functions in triton.language. For example, triton.language.sqrt(x) is equivalent to x.sqrt().

Constructors

__init__(handle, buffer_ty: buffer_type)

Not called by user code.

Methods

__init__(handle, buffer_ty)

Not called by user code.

subview(offsets, sizes, strides[, _semantic])

to_tensor([writable, target_shape, _semantic])

Convert this buffer to a tl.tensor

Attributes

type