Function: get_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
Obtains aclDataBuffer indexed index in aclmdlDataset.
Prototype
-
C Prototype
aclDataBuffer* aclmdlGetDatasetBuffer(const aclmdlDataset *dataset, size_t index) -
Python Function
data_buffer = acl.mdl.get_dataset_buffer(dataset, index)
Parameters
| Parameter | Description |
|---|---|
| dataset | Int, pointer address of the aclmdlDataset data object. Call the acl.mdl.create_dataset API to create data of the aclmdlDataset type in advance. |
| index | Int, index of aclDataBuffer to obtain. |
Return Values
| Return Value | Description |
|---|---|
| data_buffer | Int, pointer address of the aclDataBuffer data object.Success: aclDataBuffer addressFailure: empty address |