@@ -180,9 +180,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
180180 AddConstantOperator<T, D> const op)
181181{
182182 std::vector<onnx::NodeProto> nodes (2UL );
183- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
184- nodes.front (). set_op_type ( " PostConstant " );
185- nodes.back ().set_op_type (" Add " );
183+ nodes.front (). set_op_type ( " Add " );
184+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
185+ nodes.back ().set_op_type (" PostConstant " );
186186 return nodes;
187187}
188188
@@ -191,9 +191,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
191191 ScaleOperator<T, D> const op)
192192{
193193 std::vector<onnx::NodeProto> nodes (2UL );
194- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
195- nodes.front (). set_op_type ( " PostConstant " );
196- nodes.back ().set_op_type (" Mul " );
194+ nodes.front (). set_op_type ( " Mul " );
195+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
196+ nodes.back ().set_op_type (" PostConstant " );
197197 return nodes;
198198}
199199
@@ -202,9 +202,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
202202 SubtractConstantOperator<T, D> const op)
203203{
204204 std::vector<onnx::NodeProto> nodes (2UL );
205- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
206- nodes.front (). set_op_type ( " PostConstant " );
207- nodes.back ().set_op_type (" Sub " );
205+ nodes.front (). set_op_type ( " Sub " );
206+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
207+ nodes.back ().set_op_type (" PostConstant " );
208208 return nodes;
209209}
210210
@@ -213,9 +213,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
213213 ConstantSubtractOperator<T, D> const op)
214214{
215215 std::vector<onnx::NodeProto> nodes (2UL );
216- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
217- nodes.front (). set_op_type ( " PreConstant " );
218- nodes.back ().set_op_type (" Sub " );
216+ nodes.front (). set_op_type ( " Sub " );
217+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
218+ nodes.back ().set_op_type (" PreConstant " );
219219 return nodes;
220220}
221221
@@ -224,9 +224,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
224224 MaxConstantOperator<T, D> const op)
225225{
226226 std::vector<onnx::NodeProto> nodes (2UL );
227- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
228- nodes.front (). set_op_type ( " PreConstant " );
229- nodes.back ().set_op_type (" Max " );
227+ nodes.front (). set_op_type ( " Max " );
228+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
229+ nodes.back ().set_op_type (" PreConstant " );
230230 return nodes;
231231}
232232
@@ -235,9 +235,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
235235 MinConstantOperator<T, D> const op)
236236{
237237 std::vector<onnx::NodeProto> nodes (2UL );
238- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
239- nodes.front (). set_op_type ( " PreConstant " );
240- nodes.back ().set_op_type (" Min " );
238+ nodes.front (). set_op_type ( " Min " );
239+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
240+ nodes.back ().set_op_type (" PreConstant " );
241241 return nodes;
242242}
243243
@@ -246,9 +246,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
246246 EqualConstantOperator<T, D> const op)
247247{
248248 std::vector<onnx::NodeProto> nodes (2UL );
249- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
250- nodes.front (). set_op_type ( " PreConstant " );
251- nodes.back ().set_op_type (" Equal " );
249+ nodes.front (). set_op_type ( " Equal " );
250+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
251+ nodes.back ().set_op_type (" PreConstant " );
252252 return nodes;
253253}
254254
@@ -257,10 +257,10 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
257257 NotEqualConstantOperator<T, D> const op)
258258{
259259 std::vector<onnx::NodeProto> nodes (3UL );
260- nodes.front () = get_constant_node (El::To<float >(op.get_constant ()));
261- nodes.front ().set_op_type (" PreConstant" );
260+ nodes.front ().set_op_type (" Equal" );
261+ nodes.back () = get_constant_node (El::To<float >(op.get_constant ()));
262+ nodes.back ().set_op_type (" PreConstant" );
262263 nodes.at (1 ).set_op_type (" Not" );
263- nodes.back ().set_op_type (" Equal" );
264264 return nodes;
265265}
266266
@@ -269,9 +269,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
269269 LessConstantOperator<T, D> const op)
270270{
271271 std::vector<onnx::NodeProto> nodes (2UL );
272- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
273- nodes.front (). set_op_type ( " PostConstant " );
274- nodes.back ().set_op_type (" Less " );
272+ nodes.front (). set_op_type ( " Less " );
273+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
274+ nodes.back ().set_op_type (" PostConstant " );
275275 return nodes;
276276}
277277
@@ -280,9 +280,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
280280 LessEqualConstantOperator<T, D> const op)
281281{
282282 std::vector<onnx::NodeProto> nodes (2UL );
283- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
284- nodes.front (). set_op_type ( " PostConstant " );
285- nodes.back ().set_op_type (" LessOrEqual " );
283+ nodes.front (). set_op_type ( " LessOrEqual " );
284+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
285+ nodes.back ().set_op_type (" PostConstant " );
286286 return nodes;
287287}
288288
@@ -291,9 +291,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
291291 GreaterConstantOperator<T, D> const op)
292292{
293293 std::vector<onnx::NodeProto> nodes (2UL );
294- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
295- nodes.front (). set_op_type ( " PreConstant " );
296- nodes.back ().set_op_type (" Greater " );
294+ nodes.front (). set_op_type ( " Greater " );
295+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
296+ nodes.back ().set_op_type (" PreConstant " );
297297 return nodes;
298298}
299299
@@ -302,9 +302,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
302302 GreaterEqualConstantOperator<T, D> const op)
303303{
304304 std::vector<onnx::NodeProto> nodes (2UL );
305- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
306- nodes.front (). set_op_type ( " PreConstant " );
307- nodes.back ().set_op_type (" GreaterOrEqual " );
305+ nodes.front (). set_op_type ( " GreaterOrEqual " );
306+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
307+ nodes.back ().set_op_type (" PreConstant " );
308308 return nodes;
309309}
310310
0 commit comments