Git Product home page Git Product logo

Comments (4)

jameschapman19 avatar jameschapman19 commented on May 30, 2024

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.

AdirRahamim avatar AdirRahamim commented on May 30, 2024

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.

AdirRahamim avatar AdirRahamim commented on May 30, 2024

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.

jameschapman19 avatar jameschapman19 commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.