GetBaseAddr
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
x |
|
√ |
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)); |
Parent topic: TPipe