Init

Applicability

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

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();
    

Example

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