SetStartPosition

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

Sets the start position for loading GradOutput data on a single core.

Prototype

1
__aicore__ inline void SetStartPosition(uint32_t curDinStartIdx, int32_t curHoStartIdx)

Parameters

Parameter

Input/Output

Description

curDinStartIdx

Input

Start position in the D direction of the current core.

curHoStartIdx

Input

Start position in the H direction of the current core.

Returns

None

Restrictions

None

Examples

1
gradInput_.SetStartPosition(dinStartIdx_, curHoStartIdx_); // Set the start position for loading GradOutput on a single core.