Function: get_dataset_buffer

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains aclDataBuffer indexed index in aclmdlDataset.

Prototype

  • C Prototype
    1
    aclDataBuffer* aclmdlGetDatasetBuffer(const aclmdlDataset *dataset, size_t index)
    
  • Python Function
    1
    data_buffer = acl.mdl.get_dataset_buffer(dataset, index)
    

Parameter Description

Parameter

Description

dataset

Int, pointer address of the aclmdlDataset data object.

Call acl.mdl.create_dataset to create data of the aclmdlDataset type in advance.

index

Int, index of aclDataBuffer to obtain.

Return Value Description

Return Value

Description

data_buffer

Int, pointer address of the aclDataBuffer data object.

  • Success: aclDataBuffer address
  • Failure: empty address