File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,50 @@ def test_clip_errors():
435
435
ar4 ,
436
436
)
437
437
438
+ assert_raises_regex (
439
+ ExecutionPlacementError ,
440
+ "Execution placement can not be unambiguously inferred from input "
441
+ "arguments." ,
442
+ dpt .clip ,
443
+ ar1 ,
444
+ ar4 ,
445
+ ar2 ,
446
+ ar3 ,
447
+ )
448
+
449
+ assert_raises_regex (
450
+ ExecutionPlacementError ,
451
+ "Execution placement can not be unambiguously inferred from input "
452
+ "arguments." ,
453
+ dpt .clip ,
454
+ ar1 ,
455
+ ar4 ,
456
+ 1 ,
457
+ ar3 ,
458
+ )
459
+
460
+ assert_raises_regex (
461
+ ExecutionPlacementError ,
462
+ "Execution placement can not be unambiguously inferred from input "
463
+ "arguments." ,
464
+ dpt .clip ,
465
+ ar1 ,
466
+ 1 ,
467
+ ar4 ,
468
+ ar3 ,
469
+ )
470
+
471
+ assert_raises_regex (
472
+ ExecutionPlacementError ,
473
+ "Execution placement can not be unambiguously inferred from input "
474
+ "arguments." ,
475
+ dpt .clip ,
476
+ ar1 ,
477
+ ar4 ,
478
+ None ,
479
+ ar2 ,
480
+ )
481
+
438
482
ar1 = dpt .ones (2 , dtype = "float32" )
439
483
ar2 = dpt .ones_like (ar1 , dtype = "float32" )
440
484
ar3 = dpt .ones_like (ar1 , dtype = "float32" )
You can’t perform that action at this time.
0 commit comments