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

Function main

internal/bin/test_deconv.cpp:144–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144int main(int argc, char* argv[])
145{
146 int c, h, w, k, s, p, o_c, g;
147
148 int rep = 1;
149 c = 32;
150 w = 20;
151 k = 4;
152 s = 2;
153 p = 1;
154 o_c = 64;
155 g = 1;
156
157
158 int res;
159 while((res = getopt(argc, argv, "c:w:k:s:r:h")) != -1)
160 {
161 switch(res)
162 {
163 case 'c':
164 c = atoi(optarg);
165 break;
166 case 'w':
167 w = atoi(optarg);
168 break;
169 case 'k':
170 k = atoi(optarg);
171 break;
172 case 's':
173 s = atoi(optarg);
174 break;
175 case 'r':
176 rep = atoi(optarg);
177 break;
178 case 'p':
179 p = atoi(optarg);
180 break;
181 case 'o':
182 o_c = atoi(optarg);
183 break;
184 case 'g':
185 g = atoi(optarg);
186 break;
187 case 'h':
188 std::cout << "[Usage]: " << argv[0] << " [-h]\n"
189 << " [-c input_c] [-w input_w] [-k kernel] [-s stride] [-r repeat]\n";
190 return 0;
191 default:
192 break;
193 }
194 }
195 h = w;
196
197 init_tengine();
198
199 graph_t graph = create_conv_graph(c, h, w, o_c, k, s, p, g);
200 graph_t graph1 = create_conv_graph(c, h, w, o_c, k, s, p, g);
201

Callers

nothing calls this directly

Calls 15

init_tengineFunction · 0.85
get_graph_input_tensorFunction · 0.85
get_tensor_buffer_sizeFunction · 0.85
set_tensor_bufferFunction · 0.85
release_graph_tensorFunction · 0.85
get_graph_nodeFunction · 0.85
get_node_input_tensorFunction · 0.85
get_node_input_numberFunction · 0.85
prerun_graphFunction · 0.85
get_tengine_errnoFunction · 0.85
get_node_deviceFunction · 0.85
run_graphFunction · 0.85

Tested by

no test coverage detected