MakeCoord

Product Support

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference product's AI Core

x

Atlas inference product's Vector Core

x

Atlas training products

x

Function

Packages the input data into the Coord data structure.

Prototype

template <typename... Ts>
__aicore__ inline constexpr Coord<Ts...> MakeCoord(Ts const&... t)

Parameters

Parameter

Input/Output

Description

t

Input

Formal parameter package of the input data type. The usage and restrictions are the same as those of Std::tuple.

The input data type can be size_t or Std::Int.

Returns

Coord structure type (alias of the Std::tuple type).

Restrictions

None

Example

1
2
3
auto blockCoordM = Std::Int<11>{};
auto blockCoordN = Std::Int<12>{};
auto coord = AscendC::MakeCoord(blockCoordM, blockCoordN);