Function: create_dataset

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

Creates data of the aclmdlDataset type.

This data type is used to describe input and output data during model inference. A model may have multiple inputs or outputs, and data of type aclDataBuffer is used to describe the buffer address and buffer size of each input or output.

To destroy data of the aclmdlDataset type, call Function: destroy_dataset.

Prototype

  • C Prototype
    1
    aclmdlDataset *aclmdlCreateDataset()
    
  • Python Function
    1
    mdl_dataset = acl.mdl.create_dataset()
    

Parameters

None

Returns

Return Value

Description

mdl_dataset

Int, pointer address of the aclmdlDataset type.