File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ def main(argv=None):
2727 MNIST cleverhans tutorial
2828 :return:
2929 """
30+
31+ # Set TF random seed to improve reproducibility
32+ tf .set_random_seed (1234 )
33+
3034 # Image dimensions ordering should follow the Theano convention
3135 if keras .backend .image_dim_ordering () != 'th' :
3236 keras .backend .set_image_dim_ordering ('th' )
Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def main(argv=None):
3737 :return:
3838 """
3939
40+ # Set TF random seed to improve reproducibility
41+ tf .set_random_seed (1234 )
42+
4043 ###########################################################################
4144 # Define the dataset and model
4245 ###########################################################################
You can’t perform that action at this time.
0 commit comments