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 dtype type and number of elements is defined by shape values.

__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

dtype

Tensor element type

shape

Tensor shape