@@ -181,9 +181,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
181181 AddConstantOperator<T, D> const op)
182182{
183183 std::vector<onnx::NodeProto> nodes (2UL );
184- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
185- nodes.front (). set_op_type ( " PostConstant " );
186- nodes.back ().set_op_type (" Add " );
184+ nodes.front (). set_op_type ( " Add " );
185+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
186+ nodes.back ().set_op_type (" PostConstant " );
187187 return nodes;
188188}
189189
@@ -192,9 +192,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
192192 ScaleOperator<T, D> const op)
193193{
194194 std::vector<onnx::NodeProto> nodes (2UL );
195- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
196- nodes.front (). set_op_type ( " PostConstant " );
197- nodes.back ().set_op_type (" Mul " );
195+ nodes.front (). set_op_type ( " Mul " );
196+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
197+ nodes.back ().set_op_type (" PostConstant " );
198198 return nodes;
199199}
200200
@@ -203,9 +203,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
203203 SubtractConstantOperator<T, D> const op)
204204{
205205 std::vector<onnx::NodeProto> nodes (2UL );
206- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
207- nodes.front (). set_op_type ( " PostConstant " );
208- nodes.back ().set_op_type (" Sub " );
206+ nodes.front (). set_op_type ( " Sub " );
207+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
208+ nodes.back ().set_op_type (" PostConstant " );
209209 return nodes;
210210}
211211
@@ -214,9 +214,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
214214 ConstantSubtractOperator<T, D> const op)
215215{
216216 std::vector<onnx::NodeProto> nodes (2UL );
217- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
218- nodes.front (). set_op_type ( " PreConstant " );
219- nodes.back ().set_op_type (" Sub " );
217+ nodes.front (). set_op_type ( " Sub " );
218+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
219+ nodes.back ().set_op_type (" PreConstant " );
220220 return nodes;
221221}
222222
@@ -225,9 +225,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
225225 MaxConstantOperator<T, D> const op)
226226{
227227 std::vector<onnx::NodeProto> nodes (2UL );
228- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
229- nodes.front (). set_op_type ( " PreConstant " );
230- nodes.back ().set_op_type (" Max " );
228+ nodes.front (). set_op_type ( " Max " );
229+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
230+ nodes.back ().set_op_type (" PreConstant " );
231231 return nodes;
232232}
233233
@@ -236,9 +236,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
236236 MinConstantOperator<T, D> const op)
237237{
238238 std::vector<onnx::NodeProto> nodes (2UL );
239- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
240- nodes.front (). set_op_type ( " PreConstant " );
241- nodes.back ().set_op_type (" Min " );
239+ nodes.front (). set_op_type ( " Min " );
240+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
241+ nodes.back ().set_op_type (" PreConstant " );
242242 return nodes;
243243}
244244
@@ -247,9 +247,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
247247 EqualConstantOperator<T, D> const op)
248248{
249249 std::vector<onnx::NodeProto> nodes (2UL );
250- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
251- nodes.front (). set_op_type ( " PreConstant " );
252- nodes.back ().set_op_type (" Equal " );
250+ nodes.front (). set_op_type ( " Equal " );
251+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
252+ nodes.back ().set_op_type (" PreConstant " );
253253 return nodes;
254254}
255255
@@ -258,10 +258,10 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
258258 NotEqualConstantOperator<T, D> const op)
259259{
260260 std::vector<onnx::NodeProto> nodes (3UL );
261- nodes.front () = get_constant_node (El::To<float >(op.get_constant ()));
262- nodes.front ().set_op_type (" PreConstant" );
261+ nodes.front ().set_op_type (" Equal" );
262+ nodes.back () = get_constant_node (El::To<float >(op.get_constant ()));
263+ nodes.back ().set_op_type (" PreConstant" );
263264 nodes.at (1 ).set_op_type (" Not" );
264- nodes.back ().set_op_type (" Equal" );
265265 return nodes;
266266}
267267
@@ -270,9 +270,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
270270 LessConstantOperator<T, D> const op)
271271{
272272 std::vector<onnx::NodeProto> nodes (2UL );
273- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
274- nodes.front (). set_op_type ( " PostConstant " );
275- nodes.back ().set_op_type (" Less " );
273+ nodes.front (). set_op_type ( " Less " );
274+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
275+ nodes.back ().set_op_type (" PostConstant " );
276276 return nodes;
277277}
278278
@@ -281,9 +281,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
281281 LessEqualConstantOperator<T, D> const op)
282282{
283283 std::vector<onnx::NodeProto> nodes (2UL );
284- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
285- nodes.front (). set_op_type ( " PostConstant " );
286- nodes.back ().set_op_type (" LessOrEqual " );
284+ nodes.front (). set_op_type ( " LessOrEqual " );
285+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
286+ nodes.back ().set_op_type (" PostConstant " );
287287 return nodes;
288288}
289289
@@ -292,9 +292,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
292292 GreaterConstantOperator<T, D> const op)
293293{
294294 std::vector<onnx::NodeProto> nodes (2UL );
295- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
296- nodes.front (). set_op_type ( " PreConstant " );
297- nodes.back ().set_op_type (" Greater " );
295+ nodes.front (). set_op_type ( " Greater " );
296+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
297+ nodes.back ().set_op_type (" PreConstant " );
298298 return nodes;
299299}
300300
@@ -303,9 +303,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
303303 GreaterEqualConstantOperator<T, D> const op)
304304{
305305 std::vector<onnx::NodeProto> nodes (2UL );
306- nodes.front () = get_constant_node (El::To< float >(op. get_constant ()) );
307- nodes.front (). set_op_type ( " PreConstant " );
308- nodes.back ().set_op_type (" GreaterOrEqual " );
306+ nodes.front (). set_op_type ( " GreaterOrEqual " );
307+ nodes.back () = get_constant_node (El::To< float >(op. get_constant ()) );
308+ nodes.back ().set_op_type (" PreConstant " );
309309 return nodes;
310310}
311311
0 commit comments