MakeCoord

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

x

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

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

Examples

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