asc.language.tile.tile.Tile

class asc.language.tile.tile.Tile(handle: Value)

A tile is a multi-dimensional array of values in local memory (Unified Buffer, L1 Cache, etc.)

Each element is of dtype type and number of elements is defined by shape tuple.

__init__(handle: Value) None

This constructor is not called by user. Use asc2.load() function to create a tile.

Methods

__init__(handle)

This constructor is not called by user.

abs()

Computes the element-wise absolute value of input.

broadcast_to(*shape)

This function can also be called as a member function on Tile, as x.broadcast_to(...) instead of broadcast_to(x, ...).

ceil()

Computes the element-wise ceil rounding of input.

cos()

Computes the element-wise cosine of input.

cosh()

Computes the element-wise hyperbolic cosine of input.

erf()

Computes the element-wise error function of input.

exp()

Computes the element-wise exponential of input.

exp2()

Computes the element-wise exponential (base 2) of input.

expand_dims(*axis)

This function can also be called as a member function on Tile, as x.expand_dims(...) instead of expand_dims(x, ...).

floor()

Computes the element-wise floor rounding of input.

from_ir(handle)

log()

Computes the element-wise natural logarithm of input.

log2()

Computes the element-wise logarithm (base 2) of input.

max(*dims[, keep_dims])

Returns the maximum value of each row of the input tile in the given dimensions dims.

min(*dims[, keep_dims])

Returns the minimum value of each row of the input tile in the given dimensions dims.

prod(*dims[, keep_dims])

Returns the product of each row of the input tile in the given dimensions dims.

relu()

Computes the element-wise ReLU value of input.

reshape(*shape)

This function can also be called as a member function on Tile, as x.reshape(...) instead of reshape(x, ...).

rsqrt()

Computes the element-wise inverse square root of input.

sin()

Computes the element-wise sine of input.

sinh()

Computes the element-wise hyperbolic sine of input.

sqrt()

Computes the element-wise square root of input.

squeeze(*axis)

This function can also be called as a member function on Tile, as x.squeeze(...) instead of squeeze(x, ...).

sum(*dims[, keep_dims])

Returns the sum of each row of the input tile in the given dimensions dims.

tan()

Computes the element-wise tangent of input.

tanh()

Computes the element-wise hyperbolic tangent of input.

to(dtype)

to_ir()

Attributes

dtype

Tile element type

shape

Tile shape