Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix "invalid min and max arguments for uniform_int" error (pytorch#282)
Summary: Pull Request resolved: pytorch#282 I64Test will cause the above error when running in Debug mode, caused by randFill(A, numeric_limits<int64_t>::lowest(), numeric_limits<int64_t>::max()); Calling uniform_int_distribution<int> will cast the above min, max into int type on Windows in Debug mode, leading to the above assertion error. Reviewed By: jspark1105 Differential Revision: D19685537 fbshipit-source-id: 7c4ada46326dae6b61dc7794972192c0a0e9992e
- Loading branch information