@@ -5230,7 +5230,7 @@ def func(value, filters, output_shape):
52305230 def test_hashtable_lookup (self ):
52315231 filnm = "vocab.tmp"
52325232 words = ["apple" , "pear" , "banana" , "cherry" , "grape" ]
5233- query = np .array (['cherry' ], dtype = np . object )
5233+ query = np .array (['cherry' ], dtype = object )
52345234 with open (filnm , "w" ) as f :
52355235 for word in words :
52365236 f .write (word + "\n " )
@@ -5247,7 +5247,7 @@ def func(query_holder):
52475247 def test_hashtable_lookup_const (self ):
52485248 filnm = "vocab.tmp"
52495249 words = ["apple" , "pear" , "banana" , "cherry ♥" , "grape" ]
5250- query_val = np .array (['cherry ♥' , 'banana' ], dtype = np . object ).reshape ((1 , 2 , 1 ))
5250+ query_val = np .array (['cherry ♥' , 'banana' ], dtype = object ).reshape ((1 , 2 , 1 ))
52515251 with open (filnm , "w" , encoding = 'UTF-8' ) as f :
52525252 for word in words :
52535253 f .write (word + "\n " )
@@ -5264,7 +5264,7 @@ def func():
52645264 def test_hashtable_size (self ):
52655265 filnm = "vocab.tmp"
52665266 words = ["apple" , "pear" , "banana" , "cherry" , "grape" ]
5267- query = np .array (['cherry' ], dtype = np . object )
5267+ query = np .array (['cherry' ], dtype = object )
52685268 with open (filnm , "w" ) as f :
52695269 for word in words :
52705270 f .write (word + "\n " )
@@ -5853,10 +5853,10 @@ def func(x):
58535853 return tf .identity (op_ , name = _TFOUTPUT )
58545854
58555855 # tf gets this wrong and returns fp32 instead of int
5856- x_val = np .array ("123" , dtype = np . object )
5856+ x_val = np .array ("123" , dtype = object )
58575857 self ._run_test_case (func , [_OUTPUT ], {_INPUT : x_val })
58585858
5859- x_val = np .array ("123.1" , dtype = np . object )
5859+ x_val = np .array ("123.1" , dtype = object )
58605860 # can't check the values because in onnx they are padded with 0, in tf they are not
58615861 self ._run_test_case (func , [_OUTPUT ], {_INPUT : x_val }, check_value = False )
58625862
0 commit comments