Function: add_dataset_buffer
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
Adds aclDataBuffer to aclmdlDataset.
Prototype
-
C Prototype
aclError aclmdlAddDatasetBuffer(aclmdlDataset *dataset, aclDataBuffer *dataBuffer) -
Python Function
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 the acl.mdl.create_dataset API 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. |
Return Values
| Return Value | Description |
|---|---|
| dataset | Int, aclmdlDataset pointer address where aclDataBuffer is to be added. |
| ret | Int, error code.0: successOther values: failure |