mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Fix entropy error coming from test_div
Summary: Working towards https://github.com/caffe2/caffe2/pull/817. `E InvalidArgument: Insufficient bytes of entropy to draw requested array. shape=(4, 2, 5, 1, 3, 5, 5, 1), dtype=float32. Can you reduce the size or dimensions of the array? What about using a smaller dtype? If slow test runs and minimisation are acceptable, you could increase settings().buffer_size from 8192 to at least 24576000.` https://travis-ci.org/caffe2/caffe2/jobs/243867951 Closes https://github.com/caffe2/caffe2/pull/828 Differential Revision: D5276723 Pulled By: akyrola fbshipit-source-id: f7d0e2dd8ef8b6a2354bd4ff7c7446c377c954b4
This commit is contained in:
parent
969831ea33
commit
31e700910d
|
|
@ -26,6 +26,7 @@ def _tensor_and_prefix(draw, dtype, elements, min_dim=1, max_dim=4, **kwargs):
|
|||
st.lists(hu.dims(**kwargs), min_size=min_dim, max_size=max_dim))
|
||||
extra_ = draw(
|
||||
st.lists(hu.dims(**kwargs), min_size=min_dim, max_size=max_dim))
|
||||
assume(len(dims_) + len(extra_) < max_dim)
|
||||
return (draw(hu.arrays(dims_ + extra_, dtype, elements)),
|
||||
draw(hu.arrays(extra_, dtype, elements)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user