目录

SetInput

Function Description

Sets the input source of the operator, that is, which operator's output is used as the input of the current operator.

The available SetInput methods are as follows:

Function Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

Operator &SetInput(const std::string &dst_name, const Operator &src_oprt);
Operator &SetInput(const char_t *dst_name, const Operator &src_oprt);
Operator &SetInput(const std::string &dst_name, const Operator &src_oprt, const std::string &name);
Operator &SetInput(const char_t *dst_name, const Operator &src_oprt, const char_t *name);
Operator &SetInput(const std::string &dst_name, const Operator &src_oprt, uint32_t index);
Operator &SetInput(const char_t *dst_name, const Operator &src_oprt, uint32_t index);
Operator &SetInput(uint32_t dst_index, const Operator &src_oprt, uint32_t src_index);
Operator &SetInput(const char_t *dst_name, uint32_t dst_index, const Operator &src_oprt, const char_t *name);
Operator &SetInput(const char_t *dst_name, uint32_t dst_index, const Operator &src_oprt);

Parameters

Parameter Input/Output Description
dst_name Input Input name of the current operator.
src_oprt Input Source operator object for the input dst_name.
src_index Input Output ranked src_index of src_oprt.
name Input Name of the srcOprt output.
index Input Output sequence number of srcOprt.
dst_index Input Dynamic input that is ranked dst_index and whose name is dst_name.

Return Value

Type Description
Operator& Current operator.

Exception Handling

None

Restrictions

None