Comments (4)
From a quick google of this error (I can't replicate without perhaps more info on versions of pytorch?) it looks like it might relate to mixing floats and doubles.
Depending on your use case take a look at the pytorch-lightning branch where I have written a new training loop wrapper using pytorch-lightning which leverages all of their behind the scenes stuff with device and data management and is a much preferable option to my inflexible wrapper!
from cca_zoo.
Hi, I work with PyTorch version 1.8.0, it's very strange that it works for you and I keep getting this bag. For some reason, it has a problem with the gradient calculation.
I found the problem, however, I don't know how to fix it.
The problem is in line 217 in the file: deepmodels/objective.py, where you calculate:
eigvals = torch.linalg.eigvalsh(trace_TT)
This command changes the grad_fn to None and arises the problem.
from cca_zoo.
After finding the bug reason, and reading the following issue:pytorch/pytorch#57189, the problem was solved with the update of PyTorch to a newer version.
Thank you for your help!
from cca_zoo.
Ah thanks for hunting this down! Will reopen this as a Reminder to myself to change the requirements to specify this version of torch.
from cca_zoo.
Related Issues (20)
- Documentation of penalty parameter ranges? HOT 1
- why the performance of CCA and MCCA is different when I use them to project two views? HOT 9
- GRCCA gives quite different results with original implementation HOT 9
- The cca loss of two irrelevant dataset is -20. HOT 13
- The DCCA loss of two equal view is -6 (dim=100). HOT 12
- when run "python plot_dcca.py" error occurs HOT 2
- problem of latent_dims setting of DCCA_EigenGame HOT 9
- the problem of the model.transform() HOT 4
- Problems encountered when using DCCA.fit
- Pass down parameters to BaseSearchCV in cca_zoo.model_selection.GridSearchCV
- the value of the model.fit_transform() is nan HOT 7
- Could you provide a 3-group CCA method? HOT 2
- What happened to the scale argument? HOT 19
- Cannot simulate data HOT 2
- TerminatedWorkerError when using GridSearchCV HOT 29
- Do you have a CCA method incorporated with Multivariate Granger causality? HOT 3
- cca_zoo.model_selection.GridSearchCV's param_grid parameter should accept any type of iterator HOT 3
- Implement CCA-classes that can account for sample groups HOT 2
- predict() method for models? HOT 6
- SPLS is slower than it used to be.
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 cca_zoo.