@@ -5230,7 +5230,7 @@ def func(value, filters, output_shape):
5230
5230
def test_hashtable_lookup (self ):
5231
5231
filnm = "vocab.tmp"
5232
5232
words = ["apple" , "pear" , "banana" , "cherry" , "grape" ]
5233
- query = np .array (['cherry' ], dtype = np . object )
5233
+ query = np .array (['cherry' ], dtype = object )
5234
5234
with open (filnm , "w" ) as f :
5235
5235
for word in words :
5236
5236
f .write (word + "\n " )
@@ -5247,7 +5247,7 @@ def func(query_holder):
5247
5247
def test_hashtable_lookup_const (self ):
5248
5248
filnm = "vocab.tmp"
5249
5249
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 ))
5251
5251
with open (filnm , "w" , encoding = 'UTF-8' ) as f :
5252
5252
for word in words :
5253
5253
f .write (word + "\n " )
@@ -5264,7 +5264,7 @@ def func():
5264
5264
def test_hashtable_size (self ):
5265
5265
filnm = "vocab.tmp"
5266
5266
words = ["apple" , "pear" , "banana" , "cherry" , "grape" ]
5267
- query = np .array (['cherry' ], dtype = np . object )
5267
+ query = np .array (['cherry' ], dtype = object )
5268
5268
with open (filnm , "w" ) as f :
5269
5269
for word in words :
5270
5270
f .write (word + "\n " )
@@ -5853,10 +5853,10 @@ def func(x):
5853
5853
return tf .identity (op_ , name = _TFOUTPUT )
5854
5854
5855
5855
# 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 )
5857
5857
self ._run_test_case (func , [_OUTPUT ], {_INPUT : x_val })
5858
5858
5859
- x_val = np .array ("123.1" , dtype = np . object )
5859
+ x_val = np .array ("123.1" , dtype = object )
5860
5860
# can't check the values because in onnx they are padded with 0, in tf they are not
5861
5861
self ._run_test_case (func , [_OUTPUT ], {_INPUT : x_val }, check_value = False )
5862
5862
0 commit comments