GetBaseAddr

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

Atlas inference product's Vector Core

x

Atlas training products

Function

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

Description

logicPos

Input

Parameter of the logical position type. For details about this type, see TPosition.

Restrictions

NA

Returns

Base address of the logical position

Example

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