AddGraphInput
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/es_c_graph_builder.h>
- Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a
Function Usage
Adds a graph input to a specified position.
Prototype
1 | EsCTensorHolder *AddGraphInput(int32_t index, const ge::char_t *name = nullptr, const ge::char_t *type = nullptr, C_DataType data_type = C_DT_FLOAT, C_Format format = C_FORMAT_ND, const int64_t *dims = nullptr, int64_t dim_num = 0) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Input index position. |
name |
Input |
Input name. This parameter is optional. |
type |
Input |
Input type. This parameter is optional. |
data_type |
Input |
Data type. The default value is C_DT_FLOAT. |
format |
Input |
Data format. The default value is C_FORMAT_ND. |
dims |
Input |
Dimension array. This parameter is optional. |
dim_num |
Input |
Number of dimensions. The default value is 0. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
EsCTensorHolder * |
Pointer to the tensor holder. |
Constraints
None
Parent topic: EsCGraphBuilder