GetBaseAddr

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

Atlas inference product Vector Core

x

Atlas training product

Function Usage

Obtains the basic address of the position based on the input logicPos (logical abstract position). This API takes effect only in the CPU debugging scenario. It is usually used to compute the offset address of the tensor at logicPos, that is, the tensor address minus the return value of GetBaseAddr.

Prototype

1
inline uint8_t* GetBaseAddr(int8_t logicPos)

Parameters

Parameter

Input/Output

Meaning

logicPos

Input

Logical position type. For details about this type, see TPosition.

Constraints

NA

Returns

Base address of the logical position

Example

1
auto absAddr = GetTPipePtr()->GetBaseAddr(static_cast<int8_t>(pos));