GetBufHandle

Product Support

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 a buffer managed by the custom TBufPool based on offset.

Prototype

1
__aicore__ inline TBufHandle GetBufHandle(uint8_t offset)
Table 1 Parameters

Parameter

Input/Output

Description

offset

Input

Index value of a buffer.

Restrictions

The value of offset cannot exceed the value of BUFID_SIZE defined in EXTERN_IMPL_BUFPOOL. You can add verification as required.

Returns

The specified buffer, whose type is TBufHandle.

Example

For details, see Example.