Init

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

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

Initializes the Tiling data in the Conv3D object, allocates resources based on the Tiling parameters, and obtains the Pipe object declared by the user to allocate memory. For details about the Tiling parameters, see Conv3D Tiling.

Prototype

1
__aicore__ inline void Init(const void* __restrict cubeTiling)

Parameters

Parameter

Input/Output

Description

cubeTiling

Input

Tiling parameters of the Conv3D object. For details about the Tiling structure, see TConv3DApiTiling Structure.

Tiling parameters can be obtained through the GetTiling API on the Host side and passed to the kernel side for use.

Returns

None

Restrictions

  • TPipe must be initialized before the Init API is called.
  • The Init API must be called before calling the IterateAll and End APIs, and can be called only once. The calling sequence is as follows:
    1
    2
    3
    4
    Init(...);
    ...
    IterateAll(...);
    End();
    

Examples

1
2
TPipe pipe;
conv3dApi.Init(&tiling);