Function: get_dataset_num_buffers

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

Obtains the number of aclDataBuffer in aclmdlDataset.

Prototype

  • C Prototype
    1
    size_t aclmdlGetDatasetNumBuffers(const aclmdlDataset *dataset)
    
  • Python Function
    1
    index = acl.mdl.get_dataset_num_buffers(dataset)
    

Parameter Description

Parameter

Description

dataset

Int, pointer address of the aclmdlDataset data object.

Call acl.mdl.create_dataset to create data of the aclmdlDataset type in advance.

Return Value Description

Return Value

Description

index

Int, number of data of the aclDataBuffer type.