当前位置:网站首页>[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 .
边栏推荐
- 我们为什么要推出Getaverse?
- LabVIEW develops PCI-1680U dual port can card
- ribbon 执行逻辑源码解析
- [training Day12] x equation [high precision] [mathematics]
- Dom and events
- Anaconda~Upload did not complete.
- DHCP first static experiment
- Session and cookie, token and storage
- 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
- invalid syntax
猜你喜欢

Understanding of forward proxy and reverse proxy

MatrixCube揭秘102——300行实现的完整分布式存储系统MatrixKV

Qt5.12 installation error prompt: c:\qt5.12.11\vcredist\vcredist_ msvc2019_ x86.exe /norestart /q

【集训DAY11】Calc【数学】
![[training Day11] Calc [mathematics]](/img/a7/cbb33f0c241e1bad90a282bba990d1.png)
[training Day11] Calc [mathematics]

Use of qvariant

自媒体人必备的4个资源工具,每一个都很实用

自媒体人必备的4个素材网站,再也不用担心找不到素材

【集训DAY13】Travel【暴力】【动态规划】
![[training day15] paint road [minimum spanning tree]](/img/12/2d4ad1e2b8133b6c92875faa4b4182.png)
[training day15] paint road [minimum spanning tree]
随机推荐
汇编语言与微机原理实验一、实验二、实验三:分支程序设计/循环程序设计/子程序设计
新媒体运营策略(以小红书为例)帮助你快速掌握爆款创作方法
QVariant的使用
CMU AI PhD 第一年总结
Severely crack down on illegal we media operators according to law: it is urgent to purify the we media industry
Why should we launch getaverse?
Vs2017 compilation encountered the error HResult e returned by the call of COM component_ FAIL
1000 okaleido tiger launched binance NFT, triggering a rush to buy
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
Can generic types be used in array
recyclerview计算滑动距离之computeHorizontalScrollExtent-computeHorizontalScrollRange-computeHorizontalScrol
Tfrecord write and read
[training Day11] Calc [mathematics]
Express framework
Hcie is finally in hand, and the road begins
Interpretation of English terms
单元测试,写起来到底有多痛?
Madness. Smbms (supermarket order management system)
Recyclerview computehorizontalscrollextend computehorizontalscrollrange computehorizontalscroll for calculating the sliding distance
Learning orientation today