Function: add_dataset_buffer

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Function Usage

Adds aclDataBuffer to aclmdlDataset.

Prototype

  • C Prototype
    1
    aclError aclmdlAddDatasetBuffer(aclmdlDataset *dataset, aclDataBuffer *dataBuffer)
    
  • Python Function
    1
    dataset, ret = acl.mdl.add_dataset_buffer(dataset, data_buffer)
    

Parameters

Parameter

Description

dataset

Int, aclmdlDataset pointer address where aclDataBuffer is to be added.

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

data_buffer

Int, aclDataBuffer pointer address to be added.

Call acl.create_data_buffer to create data of the aclDataBuffer type in advance.

Returns

Return Value

Description

dataset

Int, aclmdlDataset pointer address where aclDataBuffer is to be added.

ret

Int, error code.