Luke Yeager
d46fe736c8
Fix flaky test in dataset_ops_test.py
Summary:
```
while pytest caffe2/python/operator_test/dataset_ops_test.py::TestDatasetOps::test_collect_tensor_ops; do sleep 0.1; done
```
Run this long enough and you'll see an error like this:
```
Sample histogram: [ 92 109 65 103 99 104 99 125 100 104]
...
> self.assertTrue(all(hist > 0.7 * (num_to_collect / 10)))
E AssertionError: False is not true
```
I've seen values like 65, 68, 69, 70. Setting the cutoff at 60 instead of 70 seems safe enough.
/cc Yangqing (or whoever authored a56b881c4a).
Closes https://github.com/caffe2/caffe2/pull/840
Differential Revision: D5292120
Pulled By: akyrola
fbshipit-source-id: 2ea4cbb58e206268759bd9d3639e8921623f519c
2017-06-21 05:35:44 -07:00
..
2017-04-24 15:52:25 -07:00
2017-05-30 12:02:18 -07:00
2017-05-30 12:02:18 -07:00
2017-06-08 13:34:46 -07:00
2017-04-27 22:06:43 -07:00
2017-06-07 00:04:26 -07:00
2017-05-19 15:20:33 -07:00
2017-05-19 12:17:17 -07:00
2017-05-19 12:17:17 -07:00
2017-05-19 12:17:17 -07:00
2017-06-21 05:35:44 -07:00
2017-05-17 17:32:53 -07:00
2017-06-15 22:51:12 -07:00
2017-05-30 09:16:48 -07:00
2017-05-17 20:33:36 -07:00
2017-05-30 20:47:16 -07:00
2017-04-24 15:52:25 -07:00
2017-06-07 00:04:26 -07:00
2017-06-08 13:34:43 -07:00
2017-06-07 00:04:26 -07:00
2017-06-07 00:04:26 -07:00
2017-06-07 00:04:26 -07:00
2017-04-25 14:31:15 -07:00
2017-06-12 14:52:04 -07:00
2017-05-19 12:17:17 -07:00
2017-05-01 09:25:30 -07:00
2017-04-24 15:52:25 -07:00
2017-05-19 10:19:00 -07:00
2017-05-02 15:22:46 -07:00
2017-06-14 18:22:39 -07:00
2017-06-16 17:03:38 -07:00
2017-05-07 21:10:11 -07:00
2017-06-19 23:02:00 -07:00
2017-05-31 20:17:31 -07:00
2017-05-26 14:50:43 -07:00
2017-05-26 14:50:43 -07:00
2017-06-21 05:35:43 -07:00
2017-06-07 00:04:26 -07:00
2017-05-11 09:32:54 -07:00
2017-06-15 15:07:57 -07:00
2017-05-30 15:32:58 -07:00
2017-06-07 00:04:26 -07:00
2017-06-15 14:17:20 -07:00
2017-06-17 08:47:38 -07:00
2017-06-19 22:35:45 -07:00
2017-06-08 13:34:43 -07:00