Comments (5)
您好,感谢关注。请问是哪一个数据集呢?这个错误看起来是有个参数b可能模型里面写的是一个vector(Size([1])),而checkpoints里面是一个matrix(Size([10000, 20]))。
from dcrn.
前輩,我剛剛又試著運行了dblp,報錯如下:
size mismatch for b: copying a param with shape torch.Size([4057, 20]) from checkpoint, the shape in current model is torch.Size([1]).
from dcrn.
dblp这个数据集我没有使用batch training,一般的gpu都可以使用整张图来训练,我建议可以直接使用非batch版本的代码。如果你需要在dblp上batch training的话可能需要修改一下b这个参数的shape。
from dcrn.
我有一個其他數據集10000*256,在非batch版本會溢出,生成了預訓練模型加載到batch版本會報此錯,應該如何修改b呢?
直接改動這一行嗎?self.b = Parameter(nn.init.constant_(torch.zeros(1), 0.5), requires_grad=True)
新手還不太會改,麻煩前輩了
from dcrn.
self.b = Parameter(nn.init.constant_(torch.zeros(n_node, opt.args.n_z), 0.5), requires_grad=True),试试这个看看行不行
from dcrn.
Related Issues (13)
- What is the batch_size parameter used by the network? I do not see the batch_size parameter in the code HOT 2
- dblp的预训练参数问题 HOT 2
- 邻接矩阵 HOT 3
- model_init HOT 1
- 论文中的Figure2里提到的Siamese encoder具体的内容是什么呢?分别是AE 和IGAE嘛? HOT 3
- 预训练权重代码 HOT 5
- 预训练模型 HOT 8
- How about the time complexity of DCRN, I have run it with GPU and I found It's speed is slowly HOT 1
- How to run DCRN on other datasets? HOT 4
- How to obtain the data set in experimental format HOT 5
- How to set parameters training 10 times to take average and standard deviation? HOT 3
- 數據集 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 dcrn.