mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
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:
committed by
Facebook GitHub Bot
parent
4d5fe90046
commit
4b64dffcb6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user