SHL 2.2.x
Loading...
Searching...
No Matches
Input/output

Functions

void csinn_set_output_number (int number, struct csinn_session *sess)
 Set the output number of the model. More...
 
void csinn_set_input_number (int number, struct csinn_session *sess)
 Set the input number of the model. More...
 
int csinn_get_output_number (struct csinn_session *sess)
 Get the output number of the model. More...
 
int csinn_get_input_number (struct csinn_session *sess)
 Get the input number of the model. More...
 
int csinn_set_output (int index, struct csinn_tensor *output, struct csinn_session *sess)
 Set the specified output of the model. More...
 
int csinn_set_input (int index, struct csinn_tensor *input, struct csinn_session *sess)
 Set the specified input of the model. More...
 
int csinn_get_output (int index, struct csinn_tensor *output, struct csinn_session *sess)
 Get the specified output of the model. More...
 
int csinn_get_input (int index, struct csinn_tensor *input, struct csinn_session *sess)
 Get the specified input of the model. More...
 
int csinn_update_input (int index, struct csinn_tensor *input, struct csinn_session *sess)
 Update specified input information. More...
 
int csinn_update_output (int index, struct csinn_tensor *output, struct csinn_session *sess)
 Update specified output information. More...
 
int csinn_set_tensor_entry (struct csinn_tensor *t, struct csinn_session *sess)
 Set input nodes. More...
 

Detailed Description

Function Documentation

◆ csinn_set_output_number()

void csinn_set_output_number ( int  number,
struct csinn_session sess 
)

Set the output number of the model.

Parameters
[in]numberOutput number
[out]sessThe session to be set

◆ csinn_set_input_number()

void csinn_set_input_number ( int  number,
struct csinn_session sess 
)

Set the input number of the model.

Parameters
[in]numberInput number
[out]sessThe session to be set

◆ csinn_get_output_number()

int csinn_get_output_number ( struct csinn_session sess)

Get the output number of the model.

Parameters
[in]sessThe session to be get
Returns
Return the output number

◆ csinn_get_input_number()

int csinn_get_input_number ( struct csinn_session sess)

Get the input number of the model.

Parameters
[in]sessThe session to be get
Returns
Return the input number

◆ csinn_set_output()

int csinn_set_output ( int  index,
struct csinn_tensor output,
struct csinn_session sess 
)

Set the specified output of the model.

Parameters
[in]indexOutput index
[in]outputOutput tensor
[out]sessThe session to be set
Returns
The return value is greater than 0 on success.

◆ csinn_set_input()

int csinn_set_input ( int  index,
struct csinn_tensor input,
struct csinn_session sess 
)

Set the specified input of the model.

Parameters
[in]indexInput index
[in]inputInput tensor
[out]sessThe session to be set
Returns
The return value is greater than 0 on success.

◆ csinn_get_output()

int csinn_get_output ( int  index,
struct csinn_tensor output,
struct csinn_session sess 
)

Get the specified output of the model.

Parameters
[in]indexOutput index
[in,out]outputOutput tensor
[in]sessThe session to be obtained
Returns
The return value is greater than 0 on success.

The interface will modify the output information of the specified serial number into the parameter output.

◆ csinn_get_input()

int csinn_get_input ( int  index,
struct csinn_tensor input,
struct csinn_session sess 
)

Get the specified input of the model.

Parameters
[in]indexInput index
[in,out]inputInput tensor
[in]sessThe session to be obtained
Returns
The return value is greater than 0 on success.

The interface will modify the input information of the specified serial number into the parameter input.

◆ csinn_update_input()

int csinn_update_input ( int  index,
struct csinn_tensor input,
struct csinn_session sess 
)

Update specified input information.

Parameters
[in]indexInput index
[in,out]inputInput tensor
[in]sessThe session to be obtained
Returns
The return value is greater than 0 on success.

◆ csinn_update_output()

int csinn_update_output ( int  index,
struct csinn_tensor output,
struct csinn_session sess 
)

Update specified output information.

Parameters
[in]indexOutput index
[in,out]outputOutput tensor
[in]sessThe session to be obtained
Returns
The return value is greater than 0 on success.

◆ csinn_set_tensor_entry()

int csinn_set_tensor_entry ( struct csinn_tensor tensor,
struct csinn_session sess 
)

Set input nodes.

Parameters
[in]tensorThe tensor needs to be set as input
[out]sessThe session to be set
Returns
The return value is greater than 0 on success.