Comments (1)
作者您好,我学习了您的这篇代码双向LSTM结合Attention的代码,对于加深我对于这些模型的理解有很大帮助,这里先对作者您的工作表示感谢,
不过在实际运行中这个demo的代码存在一些小小的问题,在LSTM类中初始化h_0和c_0时候需要在后面加上to(device),否则在使用GPU加速训练时候产生了input变量在cuda而hidden变量在CPU的错误
您好,谢谢您的提醒。我这个版本只在cpu上测过。后来我用在gpu上测也有这个问题,我忘记更新了。特别感谢您的提醒,我尽快会将新版本代码发布出来。
from text-classification-bilstm-attention-pytorch.
Related Issues (1)
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 text-classification-bilstm-attention-pytorch.