GetBaseAddr

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. During CPU debugging, this API is used to convert the Tensor address from the CPU address to the NPU address.

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.

Availability

Atlas Training Series Product

Precautions

N/A

Returns

Base address of the logical position

Example

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