Function: create_dataset
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
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, see Function: destroy_dataset.
Prototype
-
C Prototype
aclmdlDataset *aclmdlCreateDataset() -
Python Function
mdl_dataset = acl.mdl.create_dataset()
Parameters
None
Return Values
| Return Value | Description |
|---|---|
| mdl_dataset | Int, pointer address of the aclmdlDataset type. |