asc2.GlobalTensor

class asc2.GlobalTensor(*, handle: Value)

A global 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

This constructor is not called by user. Use global_tensor() function to define a global tensor.

Methods

__init__(*, handle)

This constructor is not called by user.

from_ir(handle)

to_ir()

Attributes

dtype

Tensor element type

shape

Tensor shape

rank

Number of dimensions