Move uniform_() to DistributionTemplates(Migrate uniform_ from TH to ATen) (#35580)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35580

`uniform_kernel_cpu` is based on https://github.com/pytorch/pytorch/pull/30954

Test Plan: Imported from OSS

Differential Revision: D20820221

Pulled By: pbelevich

fbshipit-source-id: 13f9fc8fc75b0e9fb48021f2ac08dcb38212a53f
This commit is contained in:
Pavel Belevich
2020-04-03 16:31:42 -07:00
committed by Facebook GitHub Bot
parent 4d5fe90046
commit 4b64dffcb6
16 changed files with 207 additions and 105 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ bool test_optimizer_xor(Options options) {
Linear(8, 1),
Functional(torch::sigmoid));
const int64_t kBatchSize = 50;
const int64_t kBatchSize = 100;
const int64_t kMaximumNumberOfEpochs = 3000;
OptimizerClass optimizer(model->parameters(), options);