mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 07:30:06 +08:00
fix test_generate
This commit is contained in:
parent
a28ca03e04
commit
cded14988c
@ -49,7 +49,7 @@ class TestGenerate(unittest.TestCase):
|
||||
verbose=False,
|
||||
logits_processors=[logits_processor],
|
||||
)
|
||||
self.assertEqual(len(all_toks), len(init_toks) + 5)
|
||||
self.assertEqual(all_toks.shape[-1], len(init_toks) + 5)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user