Comments (3)
I met the same error. I changed the parameters at the error line, but I met another error:
Traceback (most recent call last):
File "/dcs/acad/u1774624/Experiment/PY-IM-MultiHeadAttention/train.py", line 209, in
main(opt)
File "/dcs/acad/u1774624/Experiment/PY-IM-MultiHeadAttention/train.py", line 48, in main
model, model_state = create_model(opt)
File "/dcs/acad/u1774624/Experiment/PY-IM-MultiHeadAttention/train.py", line 27, in create_model
model = Transformer(opt) # Initialize a model state.
File "/dcs/acad/u1774624/Experiment/PY-IM-MultiHeadAttention/transformer/models.py", line 113, in init
self.tgt_proj = Linear(opt.d_model, opt.tgt_vocab_size, bias=False)
File "/dcs/acad/u1774624/Experiment/PY-IM-MultiHeadAttention/transformer/modules.py", line 13, in init
init.zeros_(self.linear.bias)
File "/dcs/acad/u1774624/miniconda3/lib/python3.7/site-packages/torch/nn/init.py", line 124, in zeros_
return tensor.zero_()
AttributeError: 'NoneType' object has no attribute 'zero_'
from transformer.
Found a solution for this? Getting the same error!
from transformer.
what is preprocess-train.t7
from transformer.
Related Issues (17)
- ModuleNotFoundError: No module named 'torchtext' HOT 1
- error in Linear HOT 3
- why dose this repo use the earlier labels as the input of Decoder?
- Some error in position encoding
- how to generate train, src, tgt,or how to run the code HOT 2
- I don`t want to debug...
- **difference** between paper and your code
- Can't run the whole project
- This is a piece of junk code don't look at it anymore!
- RuntimeError: Expected object of type torch.cuda.LongTensor but found type torch.LongTensor for argument #3 'index' HOT 2
- Usage of this repository
- only integer tensors of a single element can be converted to an index
- How to add some functionalities to this code? HOT 1
- How to keep constrains of sum(k)=1 and sum(α)=1?
- Thanks for your sharing, but I have a question that how to use it ?
- Thanks for your sharing, but I have a question that how to use it ? HOT 2
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 transformer.