aclmdlGetDatasetBuffer

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

Atlas inference product

Atlas training product

Function Usage

Obtains aclDataBuffer indexed index in aclmdlDataset.

Prototype

1
aclDataBuffer* aclmdlGetDatasetBuffer(const aclmdlDataset *dataset, size_t index)

Parameters

Parameter

Input/Output

Description

dataset

Input

Pointer to data of the aclmdlDataset type

Call aclmdlCreateDataset to create data of the aclmdlDataset type in advance.

index

Input

Index of aclDataBuffer to obtain

Returns

  • Success: aclDataBuffer address
  • Failure: empty address