rmlGetModelInputInfo

Returns input tensor information by a node name.

The name may be NULL if there is a single input (placeholder) node.

rml_status rmlGetModelInputInfo(

rml_model model,

const char* name,

rml_tensor_info* info);

API

Main

Parameters

Parameter

Input/Output

Description

model

input

A valid model handle.

name

input

An optional input node name, in ASCII encoding.

info

output

A pointer to a resulting input info structure.
If rmlSetModelInputInfo() was not previously called, some dimensions may be unspecified.

Return and Status Codes

Returns input tensor information in case of success and status:

  • RML_OK if the operation is successful

  • RML_ERROR_BAD_PARAMETER if model name is invalid, or info is NULL

To get more details in case of failure, call rmlGetLastError().