Justin Gibbs
fa8ddd99a3
Fix flaky test for Panaorama/regular IVFFlat equivalence ( #4954 )
...
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4954
Two tests — test_batch_boundaries and test_incremental_add — generated random
data (xt, xq, xb) using np.random.rand() without setting a random seed first.
This made the test data non-deterministic across runs. Occasionally, the random
data would produce vectors with very similar distances, causing slight
floating-point ordering differences between Panorama and regular IVFFlat that
pushed the overlap rate below the 0.999 threshold.
Update both tests to use a fixed random seed for all random data generation.
Reviewed By: mnorris11
Differential Revision: D97127668
fbshipit-source-id: 380cd9fe533c80a8dfd8f8ba373b17070f2c0fbe
2026-03-19 19:31:13 -07:00
..
2026-03-13 19:32:05 -07:00
2026-03-18 14:05:55 -07:00
2026-02-11 04:05:35 -08:00
2024-10-23 07:34:38 -07:00
2026-03-14 15:12:14 -07:00
2024-10-22 09:46:48 -07:00
2026-02-04 00:03:15 -08:00
2025-10-14 16:47:57 -07:00
2024-10-22 09:46:48 -07:00
2026-03-02 16:30:12 -08:00
2026-03-02 16:30:12 -08:00
2026-02-04 00:03:15 -08:00
2026-03-03 03:11:22 -08:00
2026-01-05 15:00:20 -08:00
2026-01-05 15:00:20 -08:00
2024-10-22 09:46:48 -07:00
2025-12-26 08:43:09 -08:00
2025-12-29 14:05:23 -08:00
2025-11-12 11:39:51 -08:00
2024-10-22 09:46:48 -07:00
2025-10-02 09:49:05 -07:00
2025-07-25 02:37:10 -07:00
2024-10-22 09:46:48 -07:00
2026-01-21 13:58:27 -08:00
2026-02-03 12:48:14 -08:00
2024-12-06 14:21:50 -08:00
2026-02-11 04:05:35 -08:00
2024-10-22 09:46:48 -07:00
2026-02-11 04:05:35 -08:00
2026-02-01 23:34:04 -08:00
2025-03-29 12:26:39 -07:00
2026-02-20 19:39:13 -08:00
2025-12-09 05:16:38 -08:00
2026-03-12 02:15:42 -07:00
2026-03-18 14:05:55 -07:00
2026-03-18 14:05:55 -07:00
2024-10-22 09:46:48 -07:00
2026-02-03 22:40:03 -08:00
2026-02-18 21:09:15 -08:00
2026-01-13 18:04:00 -08:00
2024-10-22 09:46:48 -07:00
2025-12-16 17:08:33 -08:00
2026-02-13 18:10:48 -08:00
2026-01-21 13:58:27 -08:00
2024-10-22 09:46:48 -07:00
2024-10-22 09:46:48 -07:00
2026-03-19 11:55:22 -07:00
2025-11-17 13:03:59 -08:00
2026-02-12 21:09:31 -08:00
2026-03-03 03:11:22 -08:00
2026-03-19 19:31:13 -07:00
2025-11-12 11:39:51 -08:00
2026-03-09 13:37:57 -07:00
2024-11-15 13:53:46 -08:00
2025-11-12 11:39:51 -08:00
2025-11-12 11:39:51 -08:00
2026-01-22 17:47:45 -08:00
2024-10-22 09:46:48 -07:00
2025-07-29 00:45:34 -07:00
2025-09-19 15:12:21 -07:00
2026-02-20 10:01:09 -08:00
2024-10-22 09:46:48 -07:00
2024-10-22 09:46:48 -07:00
2024-10-22 09:46:48 -07:00
2025-11-12 11:39:51 -08:00
2025-07-29 00:45:34 -07:00
2025-07-25 02:37:10 -07:00
2025-08-21 15:40:14 -07:00
2025-07-29 15:49:12 -07:00
2026-02-25 06:35:03 -08:00
2026-03-12 02:15:42 -07:00
2026-03-12 02:15:42 -07:00
2024-10-22 09:46:48 -07:00
2026-03-02 16:30:12 -08:00
2026-03-05 19:46:53 -08:00
2024-10-22 09:46:48 -07:00
2026-03-19 19:31:13 -07:00
2024-10-22 09:46:48 -07:00
2026-02-03 22:40:03 -08:00
2025-09-19 15:12:21 -07:00
2025-11-12 11:39:51 -08:00
2024-10-22 09:46:48 -07:00
2026-01-27 03:31:28 -08:00
2025-11-21 21:34:30 -08:00
2025-11-12 11:39:51 -08:00
2026-02-09 01:19:35 -08:00
2026-02-09 01:19:35 -08:00
2026-02-09 01:19:35 -08:00
2026-02-11 04:05:35 -08:00
2026-02-12 00:51:56 -08:00
2026-03-09 02:23:05 -07:00
2026-03-18 14:05:55 -07:00
2025-07-25 02:37:10 -07:00
2026-03-02 16:30:12 -08:00
2026-03-04 13:12:16 -08:00
2025-12-06 20:38:56 -08:00
2026-03-02 16:30:12 -08:00
2024-10-22 09:46:48 -07:00
2025-10-26 23:40:59 -07:00
2024-10-28 18:54:58 -07:00
2024-10-22 09:46:48 -07:00
2026-02-20 10:01:09 -08:00
2025-01-06 09:48:32 -08:00
2024-10-22 09:46:48 -07:00