Node¶
Overview¶
The definitions & operations about node. More…
// structs
struct ov_output_const_port_t;
struct ov_output_port_t;
// global functions
ov_const_port_get_shape(
const ov_output_const_port_t \* port,
ov_shape_t \* tensor_shape
);
ov_port_get_shape(const ov_output_port_t \* port, ov_shape_t \* tensor_shape);
ov_port_get_any_name(
const ov_output_const_port_t \* port,
char \*\* tensor_name
);
ov_port_get_partial_shape(
const ov_output_const_port_t \* port,
ov_partial_shape_t \* partial_shape
);
ov_port_get_element_type(
const ov_output_const_port_t \* port,
ov_element_type_e \* tensor_type
);
ov_output_port_free(ov_output_port_t \* port);
ov_output_const_port_free(ov_output_const_port_t \* port);
Detailed Documentation¶
The definitions & operations about node.
Global Functions¶
ov_const_port_get_shape(
const ov_output_const_port_t \* port,
ov_shape_t \* tensor_shape
)
Get the shape of port object.
Parameters:
port |
A pointer to ov_output_const_port_t. |
tensor_shape |
tensor shape. |
Returns:
Status code of the operation: OK(0) for success.
ov_port_get_shape(const ov_output_port_t \* port, ov_shape_t \* tensor_shape)
Get the shape of port object.
Parameters:
port |
A pointer to ov_output_port_t. |
tensor_shape |
tensor shape. |
Returns:
Status code of the operation: OK(0) for success.
ov_port_get_any_name(
const ov_output_const_port_t \* port,
char \*\* tensor_name
)
Get the tensor name of port.
Parameters:
port |
A pointer to the ov_output_const_port_t. |
tensor_name |
A pointer to the tensor name. |
Returns:
Status code of the operation: OK(0) for success.
ov_port_get_partial_shape(
const ov_output_const_port_t \* port,
ov_partial_shape_t \* partial_shape
)
Get the partial shape of port.
Parameters:
port |
A pointer to the ov_output_const_port_t. |
partial_shape |
Partial shape. |
Returns:
Status code of the operation: OK(0) for success.
ov_port_get_element_type(
const ov_output_const_port_t \* port,
ov_element_type_e \* tensor_type
)
Get the tensor type of port.
Parameters:
port |
A pointer to the ov_output_const_port_t. |
tensor_type |
tensor type. |
Returns:
Status code of the operation: OK(0) for success.
ov_output_port_free(ov_output_port_t \* port)
free port object
Parameters:
port |
The pointer to the instance of the ov_output_port_t to free. |
ov_output_const_port_free(ov_output_const_port_t \* port)
free const port
Parameters:
port |
The pointer to the instance of the ov_output_const_port_t to free. |