MakeShape
Supported Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Functions
Packs the input data into the Shape data structure.
Prototype
1 2 | template <typename... Ts> __aicore__ inline constexpr Shape<Ts...> MakeShape(const Ts&... t) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
Ts... |
Input |
Indicates the formal parameter pack of the input type. The usage and restrictions are the same as those of Std::tuple. |
Returns
Shape structure type (alias of the Std::tuple type), which is used to define the logical shape of data, for example, the number of rows and columns of a two-dimensional matrix or the size of each dimension of a multi-dimensional tensor. The definition is as follows.
1 2 | template <typename... Shapes> using Shape = Std::tuple<Shapes...>; |
Restrictions
Same as Std::tuple.
Examples
For details, see Examples.