summaryrefslogtreecommitdiff
path: root/conda
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2018-01-03 12:13:15 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-01-03 12:19:14 -0800
commit9835ca9bac135352cd356e5f87f832dcbbc6d1fa (patch)
treefc3b8ea55bbd45fd1b178364a60be8f85094d2fe /conda
parent387b4234ea3fe2a24e6922eb0436971add67627c (diff)
downloadpytorch-9835ca9bac135352cd356e5f87f832dcbbc6d1fa.tar.gz
pytorch-9835ca9bac135352cd356e5f87f832dcbbc6d1fa.tar.bz2
pytorch-9835ca9bac135352cd356e5f87f832dcbbc6d1fa.zip
Ensure indices list in sparse optimizer tests is unique
Summary: There were no dimensionality constraints to the generated indices array, causing many examples being generated and filtered out. Instead, we should ensure the probability of unique indices is high. There is a better fix for this by using the `unique` keyword argument to `hypothesis.extra.numpy.arrays`, but this is available only in hypothesis version 3.28.0 and later. This is related to #1536 and #1599. Once this change has proven to be OK, we can modify the other tests that now have health check suppression enabled as well. Closes https://github.com/caffe2/caffe2/pull/1686 Reviewed By: Yangqing Differential Revision: D6651789 Pulled By: pietern fbshipit-source-id: d80886c9ccf0a7a842a7580a279f33a2d6cca97c
Diffstat (limited to 'conda')
0 files changed, 0 insertions, 0 deletions