Files
pytorch/caffe2/python/operator_test
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-06-08 13:34:46 -07:00
2017-04-27 22:06:43 -07:00
2017-05-19 15:20:33 -07:00
2017-06-15 22:51:12 -07:00
2017-04-24 15:52:25 -07:00
2017-06-07 00:04:26 -07:00
2017-06-07 00:04:26 -07:00
2017-05-26 14:50:43 -07:00
2017-06-15 15:07:57 -07:00
2017-06-17 08:47:38 -07:00