Skip to content

Commit ee31040

Browse files
hawkinspcopybara-github
authored andcommitted
[numpy] Fix test failures under NumPy 2.0.
PiperOrigin-RevId: 663776255
1 parent f8acd28 commit ee31040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language_table/common/clip_tokenizer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _simple_tokenize(tokenizer, texts, context_length = 77):
5858
all_tokens = [
5959
[sot_token] + tokenizer.encode(text) + [eot_token] for text in texts
6060
]
61-
result = np.zeros((len(all_tokens), context_length), dtype=np.compat.long)
61+
result = np.zeros((len(all_tokens), context_length), dtype=int)
6262

6363
for i, tokens in enumerate(all_tokens):
6464
if len(tokens) > context_length:

0 commit comments

Comments
 (0)