asc.language.tile.tensor.Tensor
- class asc.language.tile.tensor.Tensor(*, handle: Value | None = None)
A tensor is a contiguous ND-array of values in Global Memory.
Each element is of
dtypetype and number of elements is defined byshapevalues.- __init__(*, handle: Value | None = None) None
This constructor is not called by user. Use
asc2.tensor()function to define a tensor.
Methods
__init__(*[, handle])This constructor is not called by user.
from_ir(handle)to_ir()Attributes
dtypeTensor element type
shapeTensor shape