Comments (3)
这个是正常的。cudnn的运算是有随机性的,哪怕种子都固定了,经过若干训练steps的累积,也容易收敛到不同到结果。网上也有一些尝试固定cudnn种子的做法,比如pytorch中
torch.cuda.manual_seed_all(SEED)
torch.backends.cudnn.deterministic=True
你可以尝试一下,我没试过。一般来说大家还是习惯于多次训练取个平均值
from cs224n-winter-together.
@xixiaoyao 嗯发现了是cudnn的随机性问题,实测这个case中加入这条就可以得到确定的满分答案
torch.backends.cudnn.deterministic=True
Reference: pytorch/pytorch#7068 (comment)
from cs224n-winter-together.
好的,赞~
from cs224n-winter-together.
Related Issues (11)
- 对skip-gram的直观解释 HOT 1
- assignment #4: Decode阶段softmax计算量很大,有解决办法吗? HOT 3
- gensim.downloader的下载速度不行,glove词向量下载不下来怎么办? HOT 2
- n-gram中句子加首尾标志符 HOT 3
- Assignment 5中出现conv filter size是5但是输入尺度为4的问题
- 为什么小语料的情况下反而skip-gram表现更好一些呢? HOT 1
- Lecture videos link
- 有没有 word2vec 中的数学原理详解? HOT 1
- 有没有对HMM比较好的讲解?
- 有没有往年大佬整理的笔记?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs224n-winter-together.