rmlSetModelInputInfo

Sets input tensor information for a node name.

This call is optional if all model input dimensions are initially specified. The name may be NULL if there is a single input (placeholder) node.

rml_status rmlSetModelInputInfo(

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 input node name, in ASCII encoding.

info

input

A pointer to an input info structure.

Return and Status Codes

Returns one of the following status codes:

  • RML_OK if the operation is successful

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

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