Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #32 from PaddlePaddle/guochaorong-patch-2-1
Browse files Browse the repository at this point in the history
set seed for mnist
  • Loading branch information
guochaorong committed Jun 1, 2018
2 parents 28563ce + 6895384 commit 814d93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mnist/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

from continuous_evaluation import (train_acc_kpi, train_cost_kpi, test_acc_kpi,
train_duration_kpi, tracking_kpis)
SEED = 1
SEED = 90
DTYPE = "float32"

# random seed must set before configuring the network.
# fluid.default_startup_program().random_seed = SEED
fluid.default_startup_program().random_seed = SEED


def parse_args():
Expand Down

0 comments on commit 814d93f

Please sign in to comment.