triton.language.tensor#
- class triton.language.tensor(handle, type: dtype)#
Represents an N-dimensional array of values or pointers.
tensoris the fundamental data structure in Triton programs. Most functions intriton.languageoperate on and return tensors.Most of the named member functions here are duplicates of the free functions in
triton.language. For example,triton.language.sqrt(x)is equivalent tox.sqrt().tensoralso defines most of the magic/dunder methods, so you can writex+y,x << 2, etc.- __init__(handle, type: dtype)#
Not called by user code.
Methods
__init__(name)Initialize self.
absadvanceargmaxargminassociative_scanatomic_addatomic_andatomic_casatomic_maxatomic_minatomic_oratomic_xchgatomic_xorbroadcast_tocastcdivceilcoscumprodcumsumerfexpexp2expand_dimsflipfloorgatherhistogramitemloglog2logical_andlogical_ormaxminpermuteravelreducereduce_orreshapersqrtsigmoidsinsoftmaxsortsplitsqrtsqrt_rnstoresumtotransviewxor_sumAttributes
Ttype