@@ -238,117 +238,117 @@ TEST(Converters, ATenRsubWithScalarConvertsCorrectly) {
238
238
pointwise_test_helper (graph, true , false , {4 , 3 , 3 , 3 });
239
239
}
240
240
241
- TEST (Converters, ATenClampMinConvertsCorrectly) {
242
- const auto graph = R"IR(
241
+ TEST (Converters, ATenClampMinConvertsCorrectly) {
242
+ const auto graph = R"IR(
243
243
graph(%x.1 : Tensor):
244
244
%2 : int = prim::Constant[value=-2]()
245
245
%3 : None = prim::Constant()
246
246
%4 : Tensor = aten::clamp(%x.1, %2, %3)
247
247
return (%4))IR" ;
248
- pointwise_test_helper (graph, true );
249
- }
248
+ pointwise_test_helper (graph, true );
249
+ }
250
250
251
- TEST (Converters, ATenClampMaxConvertsCorrectly) {
252
- const auto graph = R"IR(
251
+ TEST (Converters, ATenClampMaxConvertsCorrectly) {
252
+ const auto graph = R"IR(
253
253
graph(%x.1 : Tensor):
254
254
%2 : int = prim::Constant[value=3]()
255
255
%3 : None = prim::Constant()
256
256
%4 : Tensor = aten::clamp(%x.1, %3, %2)
257
257
return (%4))IR" ;
258
- pointwise_test_helper (graph, true );
259
- }
258
+ pointwise_test_helper (graph, true );
259
+ }
260
260
261
- TEST (Converters, ATenClampMinMaxConvertsCorrectly) {
262
- const auto graph = R"IR(
261
+ TEST (Converters, ATenClampMinMaxConvertsCorrectly) {
262
+ const auto graph = R"IR(
263
263
graph(%x.1 : Tensor):
264
264
%2 : int = prim::Constant[value=3]()
265
265
%3 : int = prim::Constant[value=-2]()
266
266
%4 : Tensor = aten::clamp(%x.1, %3, %2)
267
267
return (%4))IR" ;
268
- pointwise_test_helper (graph, true );
269
- }
268
+ pointwise_test_helper (graph, true );
269
+ }
270
270
271
- TEST (Converters, ATenGreaterThanConvertsCorrectly) {
272
- const auto graph = R"IR(
271
+ TEST (Converters, ATenGreaterThanConvertsCorrectly) {
272
+ const auto graph = R"IR(
273
273
graph(%0 : Tensor, %1 : Tensor):
274
274
%2 : Tensor = aten::gt(%0, %1)
275
275
return (%2))IR" ;
276
- pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
277
- }
276
+ pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
277
+ }
278
278
279
- TEST (Converters, ATenGreaterThanScalarConvertsCorrectly) {
280
- const auto graph = R"IR(
279
+ TEST (Converters, ATenGreaterThanScalarConvertsCorrectly) {
280
+ const auto graph = R"IR(
281
281
graph(%0 : Tensor):
282
282
%scalar : float = prim::Constant[value=3]()
283
283
%2 : Tensor = aten::gt(%0, %scalar)
284
284
return (%2))IR" ;
285
- pointwise_test_helper (graph, true , false , {5 , 5 });
286
- }
285
+ pointwise_test_helper (graph, true , false , {5 , 5 });
286
+ }
287
287
288
- TEST (Converters, ATenLessThanConvertsCorrectly) {
289
- const auto graph = R"IR(
288
+ TEST (Converters, ATenLessThanConvertsCorrectly) {
289
+ const auto graph = R"IR(
290
290
graph(%0 : Tensor, %1 : Tensor):
291
291
%2 : Tensor = aten::lt(%0, %1)
292
292
return (%2))IR" ;
293
- pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
294
- }
293
+ pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
294
+ }
295
295
296
- TEST (Converters, ATenLessThanScalarConvertsCorrectly) {
297
- const auto graph = R"IR(
296
+ TEST (Converters, ATenLessThanScalarConvertsCorrectly) {
297
+ const auto graph = R"IR(
298
298
graph(%0 : Tensor):
299
299
%scalar : float = prim::Constant[value=3]()
300
300
%2 : Tensor = aten::lt(%0, %scalar)
301
301
return (%2))IR" ;
302
- pointwise_test_helper (graph, true , false , {5 , 5 });
303
- }
302
+ pointwise_test_helper (graph, true , false , {5 , 5 });
303
+ }
304
304
305
- TEST (Converters, ATenEqualConvertsCorrectly) {
306
- const auto graph = R"IR(
305
+ TEST (Converters, ATenEqualConvertsCorrectly) {
306
+ const auto graph = R"IR(
307
307
graph(%0 : Tensor, %1 : Tensor):
308
308
%2 : Tensor = aten::eq(%0, %1)
309
309
return (%2))IR" ;
310
- pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
311
- }
310
+ pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
311
+ }
312
312
313
- TEST (Converters, ATenEqualScalarConvertsCorrectly) {
314
- const auto graph = R"IR(
313
+ TEST (Converters, ATenEqualScalarConvertsCorrectly) {
314
+ const auto graph = R"IR(
315
315
graph(%0 : Tensor):
316
316
%scalar : float = prim::Constant[value=3]()
317
317
%2 : Tensor = aten::eq(%0, %scalar)
318
318
return (%2))IR" ;
319
- pointwise_test_helper (graph, true , false , {5 , 5 });
320
- }
319
+ pointwise_test_helper (graph, true , false , {5 , 5 });
320
+ }
321
321
322
- TEST (Converters, ATenGEConvertsCorrectly) {
323
- const auto graph = R"IR(
322
+ TEST (Converters, ATenGEConvertsCorrectly) {
323
+ const auto graph = R"IR(
324
324
graph(%0 : Tensor, %1 : Tensor):
325
325
%2 : Tensor = aten::ge(%0, %1)
326
326
return (%2))IR" ;
327
- pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
328
- }
327
+ pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
328
+ }
329
329
330
- TEST (Converters, ATenGEScalarConvertsCorrectly) {
331
- const auto graph = R"IR(
330
+ TEST (Converters, ATenGEScalarConvertsCorrectly) {
331
+ const auto graph = R"IR(
332
332
graph(%0 : Tensor):
333
333
%scalar : float = prim::Constant[value=3]()
334
334
%2 : Tensor = aten::ge(%0, %scalar)
335
335
return (%2))IR" ;
336
- pointwise_test_helper (graph, true , false , {5 , 5 });
337
- }
336
+ pointwise_test_helper (graph, true , false , {5 , 5 });
337
+ }
338
338
339
- TEST (Converters, ATenLEConvertsCorrectly) {
340
- const auto graph = R"IR(
339
+ TEST (Converters, ATenLEConvertsCorrectly) {
340
+ const auto graph = R"IR(
341
341
graph(%0 : Tensor, %1 : Tensor):
342
342
%2 : Tensor = aten::le(%0, %1)
343
343
return (%2))IR" ;
344
- pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
345
- }
344
+ pointwise_test_helper (graph, false , false , {5 , 5 }, {5 , 5 });
345
+ }
346
346
347
- TEST (Converters, ATenLEScalarConvertsCorrectly) {
348
- const auto graph = R"IR(
347
+ TEST (Converters, ATenLEScalarConvertsCorrectly) {
348
+ const auto graph = R"IR(
349
349
graph(%0 : Tensor):
350
350
%scalar : float = prim::Constant[value=3]()
351
351
%2 : Tensor = aten::le(%0, %scalar)
352
352
return (%2))IR" ;
353
- pointwise_test_helper (graph, true , false , {5 , 5 });
354
- }
353
+ pointwise_test_helper (graph, true , false , {5 , 5 });
354
+ }
0 commit comments