tbh-98 / reproducing-of-cpm-nets-cross-partial-multi-view-networks Goto Github PK
View Code? Open in Web Editor NEWCode in pytorch for reproducing experiments in "CPM-Nets: Cross Partial Multi-View Networks"
Code in pytorch for reproducing experiments in "CPM-Nets: Cross Partial Multi-View Networks"
你好,编码网络部分代码中是直接潜在表示和权重进行了相乘,并没有看到需要经过激活函数,是这样吗?
你好~
CPM_Nets.py文件中97行,出现如下错误,请问要怎么处理呢?
line 97, in train
Reconstruction_LOSS.backward(retain_graph=True)
File "/home/ply/anaconda3/lib/python3.7/site-packages/torch/tensor.py", line 245, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs)
File "/home/ply/anaconda3/lib/python3.7/site-packages/torch/autograd/init.py", line 147, in backward
allow_unreachable=True, accumulate_grad=True) # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [150, 216]], which is output 0 of TBackward, is at version 3; expected version 2 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
网上查了一圈说是计算梯度的时候+=替换之类的问题,但我看代码中,反向传播时就只有retrain_graph=True,重构损失函数中loss也是loss=loss+....的表示,不知道如何解决。
Hello,I want to communicate with you ,can I get your email
Do you have time?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.