Skip to content

Commit

Permalink
Bigger array is more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
undfined committed Oct 30, 2024
1 parent e45d2c3 commit ffe7660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/data/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
)


@pytest.mark.limit_memory("11 KB")
@pytest.mark.limit_memory("245 KB")
def test_segment_documents_into_instances(tmp_path):
data = [1, 2, 3, 4, 0, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 0] * 10
data = [1, 2, 3, 4, 0, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 0] * 1000
data_path = tmp_path / "data.npy"
max_sequence_length = 4
mmap = np.memmap(data_path, mode="w+", dtype=np.uint16, shape=(len(data),))
Expand Down

0 comments on commit ffe7660

Please sign in to comment.