Function: create_dataset

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

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()
    

Parameter Description

None.

Return Value Description

Return Value

Description

mdl_dataset

Int, pointer address of the aclmdlDataset type.