asc.language.tile.tensor.tensor
- asc.language.tile.tensor.tensor(base: GlobalAddress, shape: Iterable[PlainValue | int]) Tensor
Define a new tensor. Tensors are used to transfer data between local and global memory.
- Parameters:
base – The base address of an array in Global Memory representing a tensor
shape – An iterable for integer-like values representing the number of elements for each dimension of a tensor
- Returns:
A new tensor descriptor
- Return type: