Clean up deprecation warnings (#19654)

* Clean up deprecation warnings

Notes:
Changed some strings in tests to raw strings, which will change the literal content of the strings as they are fed into whatever machine handles them.
Test cases for past in the past/past_key_values switch changed/removed due to warning of impending removal

* Add PILImageResampling abstraction for PIL.Image.Resampling
This commit is contained in:
David Yang
2022-10-19 01:34:47 +08:00
committed by GitHub
parent af556a09f6
commit a23819ed6a
51 changed files with 280 additions and 202 deletions

View File

@@ -233,7 +233,7 @@ class FlaxBeitModelIntegrationTest(unittest.TestCase):
pixel_values = feature_extractor(images=image, return_tensors="np").pixel_values
# prepare bool_masked_pos
bool_masked_pos = np.ones((1, 196), dtype=np.bool)
bool_masked_pos = np.ones((1, 196), dtype=bool)
# forward pass
outputs = model(pixel_values=pixel_values, bool_masked_pos=bool_masked_pos)