triton.extension.buffer.language.subview
- triton.extension.buffer.language.subview(src: buffer, offsets: List[constexpr], sizes: List[constexpr], strides: List[constexpr], _semantic=None) buffer
Creates a subview of the source buffer with the specified offsets, sizes, and strides.
- 参数:
src (buffer) -- The source buffer to create a subview from.
offsets (List[tl.constexpr]) -- A list of non-negative integers representing the offsets in each dimension.
sizes (List[tl.constexpr]) -- A list of non-negative integers representing the sizes in each dimension.
strides (List[tl.constexpr]) -- A list of non-negative integers representing the strides in each dimension.
- 返回:
A new buffer representing the subview of the source buffer.
- 返回类型: