MCPcopy Create free account
hub / github.com/OAID/Tengine / create_input_node_Case3

Function create_input_node_Case3

internal/bin/test_eltwise_op.cpp:145–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 return 0;
144}
145int create_input_node_Case3(graph_t graph, const char* node_name, int c, int h, int w, int data_type)
146{
147 node_t node = create_graph_node(graph, node_name, "InputOp");
148 tensor_t tensor = create_graph_tensor(graph, node_name, data_type);
149
150 if(tensor == nullptr)
151 {
152 release_graph_node(node);
153 return -1;
154 }
155
156 set_node_output_tensor(node, 0, tensor, TENSOR_TYPE_INPUT);
157
158 int dims[1] = {1};
159
160 set_tensor_shape(tensor, dims, 1);
161
162 release_graph_tensor(tensor);
163 release_graph_node(node);
164
165 return 0;
166}
167
168int create_test_node(graph_t graph, const char* node_name, const char* input_name, const char* input_name_1, int i_type)
169{

Callers 1

create_test_graphFunction · 0.85

Calls 6

create_graph_nodeFunction · 0.85
create_graph_tensorFunction · 0.85
release_graph_nodeFunction · 0.85
set_node_output_tensorFunction · 0.85
set_tensor_shapeFunction · 0.85
release_graph_tensorFunction · 0.85

Tested by

no test coverage detected