@@ -180,9 +180,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
180
180
AddConstantOperator<T, D> const op)
181
181
{
182
182
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 " );
186
186
return nodes;
187
187
}
188
188
@@ -191,9 +191,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
191
191
ScaleOperator<T, D> const op)
192
192
{
193
193
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 " );
197
197
return nodes;
198
198
}
199
199
@@ -202,9 +202,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
202
202
SubtractConstantOperator<T, D> const op)
203
203
{
204
204
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 " );
208
208
return nodes;
209
209
}
210
210
@@ -213,9 +213,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
213
213
ConstantSubtractOperator<T, D> const op)
214
214
{
215
215
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 " );
219
219
return nodes;
220
220
}
221
221
@@ -224,9 +224,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
224
224
MaxConstantOperator<T, D> const op)
225
225
{
226
226
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 " );
230
230
return nodes;
231
231
}
232
232
@@ -235,9 +235,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
235
235
MinConstantOperator<T, D> const op)
236
236
{
237
237
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 " );
241
241
return nodes;
242
242
}
243
243
@@ -246,9 +246,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
246
246
EqualConstantOperator<T, D> const op)
247
247
{
248
248
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 " );
252
252
return nodes;
253
253
}
254
254
@@ -257,10 +257,10 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
257
257
NotEqualConstantOperator<T, D> const op)
258
258
{
259
259
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" );
262
263
nodes.at (1 ).set_op_type (" Not" );
263
- nodes.back ().set_op_type (" Equal" );
264
264
return nodes;
265
265
}
266
266
@@ -269,9 +269,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
269
269
LessConstantOperator<T, D> const op)
270
270
{
271
271
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 " );
275
275
return nodes;
276
276
}
277
277
@@ -280,9 +280,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
280
280
LessEqualConstantOperator<T, D> const op)
281
281
{
282
282
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 " );
286
286
return nodes;
287
287
}
288
288
@@ -291,9 +291,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
291
291
GreaterConstantOperator<T, D> const op)
292
292
{
293
293
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 " );
297
297
return nodes;
298
298
}
299
299
@@ -302,9 +302,9 @@ std::vector<onnx::NodeProto> get_onnx_nodes_impl(
302
302
GreaterEqualConstantOperator<T, D> const op)
303
303
{
304
304
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 " );
308
308
return nodes;
309
309
}
310
310
0 commit comments