aclmdlGetInputFormat

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

√

Atlas A3 training products / Atlas A3 inference products

√

Atlas A2 training products / Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function Usage

Obtains the input format of a model based on the model description.

Prototype

1
aclFormat aclmdlGetInputFormat(const aclmdlDesc *modelDesc, size_t index)

Parameters

Parameter

Input/Output

Description

modelDesc

Input

Pointer to data of the aclmdlDesc type

Call aclmdlCreateDesc to create data of the aclmdlDesc type in advance.

index

Input

Index of the input whose format is to be obtained, indexed from 0

Returns

Format of the specified input. The type is aclFormat.