@@ -792,7 +792,7 @@ def test_rnn_sequence():
792792
793793
794794def test_loop ():
795- bool_val = [True ] # np.array([1], dtype=np. bool)
795+ bool_val = [True ] # np.array([1], dtype=bool)
796796 condition = ov .constant (bool_val )
797797 trip_count = ov .constant (16 , dtype = np .int32 )
798798 # Body parameters
@@ -861,7 +861,7 @@ def test_roi_pooling():
861861 ([2 , 3 , 5 , 6 ], [7 , 4 ], [7 ], 2 , 2 , 1 , 1.0 , "avg" , "asymmetric" , [7 , 3 , 2 , 2 ]),
862862 ([10 , 3 , 5 , 5 ], [7 , 4 ], [7 ], 3 , 4 , 1 , 1.0 , "avg" , "half_pixel_for_nn" , [7 , 3 , 3 , 4 ]),
863863 ([10 , 3 , 5 , 5 ], [3 , 4 ], [3 ], 3 , 4 , 1 , 1.0 , "avg" , "half_pixel" , [3 , 3 , 3 , 4 ]),
864- ([10 , 3 , 5 , 5 ], [3 , 4 ], [3 ], 3 , 4 , 1 , np . float (1 ), "avg" , "half_pixel" , [3 , 3 , 3 , 4 ]),
864+ ([10 , 3 , 5 , 5 ], [3 , 4 ], [3 ], 3 , 4 , 1 , float (1 ), "avg" , "half_pixel" , [3 , 3 , 3 , 4 ]),
865865 ],
866866)
867867def test_roi_align (data_shape , rois , batch_indices , pooled_h , pooled_w , sampling_ratio , spatial_scale , mode , aligned_mode , expected_shape ):
@@ -1816,11 +1816,11 @@ def test_multiclass_nms():
18161816 0.0 , - 0.1 , 1.0 , 0.9 , 0.0 , 10.0 , 1.0 , 11.0 ,
18171817 0.0 , 10.1 , 1.0 , 11.1 , 0.0 , 100.0 , 1.0 , 101.0 ], dtype = "float32" )
18181818 boxes_data = boxes_data .reshape ([1 , 6 , 4 ])
1819- box = ov .constant (boxes_data , dtype = np . float )
1819+ box = ov .constant (boxes_data , dtype = float )
18201820 scores_data = np .array ([0.9 , 0.75 , 0.6 , 0.95 , 0.5 , 0.3 ,
18211821 0.95 , 0.75 , 0.6 , 0.80 , 0.5 , 0.3 ], dtype = "float32" )
18221822 scores_data = scores_data .reshape ([1 , 2 , 6 ])
1823- score = ov .constant (scores_data , dtype = np . float )
1823+ score = ov .constant (scores_data , dtype = float )
18241824
18251825 nms_node = ov .multiclass_nms (box , score , None , output_type = "i32" , nms_top_k = 3 ,
18261826 iou_threshold = 0.5 , score_threshold = 0.0 , sort_result_type = "classid" ,
@@ -1841,13 +1841,13 @@ def test_multiclass_nms():
18411841 [9.66 , 3.36 , 18.57 , 13.26 ]],
18421842 [[6.50 , 7.00 , 13.33 , 17.63 ],
18431843 [0.73 , 5.34 , 19.97 , 19.97 ]]]).astype ("float32" )
1844- box = ov .constant (boxes_data , dtype = np . float )
1844+ box = ov .constant (boxes_data , dtype = float )
18451845 scores_data = np .array ([[0.34 , 0.66 ],
18461846 [0.45 , 0.61 ],
18471847 [0.39 , 0.59 ]]).astype ("float32" )
1848- score = ov .constant (scores_data , dtype = np . float )
1848+ score = ov .constant (scores_data , dtype = float )
18491849 rois_num_data = np .array ([3 ]).astype ("int32" )
1850- roisnum = ov .constant (rois_num_data , dtype = np . int )
1850+ roisnum = ov .constant (rois_num_data , dtype = int )
18511851 nms_node = ov .multiclass_nms (box , score , roisnum , output_type = "i32" , nms_top_k = 3 ,
18521852 iou_threshold = 0.5 , score_threshold = 0.0 , sort_result_type = "classid" ,
18531853 nms_eta = 1.0 )
@@ -1867,11 +1867,11 @@ def test_matrix_nms():
18671867 0.0 , - 0.1 , 1.0 , 0.9 , 0.0 , 10.0 , 1.0 , 11.0 ,
18681868 0.0 , 10.1 , 1.0 , 11.1 , 0.0 , 100.0 , 1.0 , 101.0 ], dtype = "float32" )
18691869 boxes_data = boxes_data .reshape ([1 , 6 , 4 ])
1870- box = ov .constant (boxes_data , dtype = np . float )
1870+ box = ov .constant (boxes_data , dtype = float )
18711871 scores_data = np .array ([0.9 , 0.75 , 0.6 , 0.95 , 0.5 , 0.3 ,
18721872 0.95 , 0.75 , 0.6 , 0.80 , 0.5 , 0.3 ], dtype = "float32" )
18731873 scores_data = scores_data .reshape ([1 , 2 , 6 ])
1874- score = ov .constant (scores_data , dtype = np . float )
1874+ score = ov .constant (scores_data , dtype = float )
18751875
18761876 nms_node = ov .matrix_nms (box , score , output_type = "i32" , nms_top_k = 3 ,
18771877 score_threshold = 0.0 , sort_result_type = "score" , background_class = 0 ,
0 commit comments