当前位置:网站首页>[tensorflow] about seed
[tensorflow] about seed
2022-07-25 22:49:00 【hanjialeOK】
At present, all my code is based on tensorflow1.15, The way of setting seeds in the experiment is
tf.compat.v1.set_random_seed(args.seed)
np.random.seed(args.seed)
random.seed(args.seed)
After this setting , identical seed The experimental results are basically the same ( The initial parameters of the network model are constant , The result of each step is fixed ). however , If the tf Of graph Make some unimportant changes , Such as : Add one more useless placeholder, Add a useless full connection layer and so on , The result of each step will be similar to Previously unmodified There are differences in time .
for instance , Algorithm algo1.py and algo2.py, The logic of the latter is only one more useless than the former placeholder, Even if the two algorithms seed identical , The experimental results of each step will also be different .
边栏推荐
- [training day13] travel [violence] [dynamic planning]
- CUDA environment construction
- Oracle query statement summary
- CSV intro
- Binder principle
- 【PMP学习笔记】第1章 PMP体系引论
- ECMA 262 12 Lexical Grammer
- 【集训DAY11】Calc【数学】
- [training day15] boring [tree DP]
- [training Day12] tree! Tree! Tree! [greed] [minimum spanning tree]
猜你喜欢
![[training Day11] Calc [mathematics]](/img/a7/cbb33f0c241e1bad90a282bba990d1.png)
[training Day11] Calc [mathematics]

Summary 1 - deep learning - basic knowledge learning

Opencv compile and call GPU version

贴片微型滚珠振动开关的结构原理
![[training day15] simple calculation [tree array] [mathematics]](/img/20/a5604f666ab02f47929f80c5597f0a.png)
[training day15] simple calculation [tree array] [mathematics]

武汉理工大学第三届程序设计竞赛 B-拯救DAG王国(拓扑性质处理可达性统计问题)

【集训DAY13】Travel【暴力】【动态规划】

Day006 select structure (if statement exercise)

Simple setting of drop-down triangle
![[PMP learning notes] Chapter 1 Introduction to PMP System](/img/80/144124af40f0a015c4deafc3aa7432.png)
[PMP learning notes] Chapter 1 Introduction to PMP System
随机推荐
The difference between "rewrite" and "overload"
Binder principle
[training Day12] tree! Tree! Tree! [greed] [minimum spanning tree]
Kibana~ the process number cannot be found after kibana is started in the background
Two methods of printing strings in reverse order in C language
2020-09-17
Madness. MySQL learning.
ECMA 262 12 Lexical Grammer
Severely crack down on illegal we media operators according to law: it is urgent to purify the we media industry
Extended configuration of static routing in the second experiment
我们为什么要推出Getaverse?
DHCP first static experiment
Summary of common methods of string:
CMU AI PhD first year summary
【集训DAY12】X equation 【高精度】【数学】
Naming rules of software test pytest pytest the pre and post confitest of use cases Py customized allure report @pytest.mark.parameter() decorator as data-driven
Scratch seamless butt bron filter
3 lexical analysis
【集训DAY11】Nescafe【贪心】
JSON object