rmlGetModelOutputInfo

Returns output tensor information.

All input dimensions must be specified before this call. The name my be NULL if there is a single output node.

rml_status rmlGetModelOutputInfo(

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

A optional output node name, in ASCII encoding.

info

output

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

Return and Status Codes

Returns output tensor information in case of success and status:

  • RML_OK if the operation is successful

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

  • RML_ERROR_MODEL_NOT_READY if some inputs have unspecified dimensions

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