Code Monkey home page Code Monkey logo

Comments (8)

v587su avatar v587su commented on June 12, 2024 5

The wrong code is at line 75 of supervised_trainer.py and line 38 of evaluator.py.
I change them to device = torch.device('cuda:0') if torch.cuda.is_available() else -1 and CUDA is available now.

from pytorch-seq2seq.

pskrunner14 avatar pskrunner14 commented on June 12, 2024

@jinfagang could you try running your code with develop branch?

from pytorch-seq2seq.

Huijun-Cui avatar Huijun-Cui commented on June 12, 2024

bug bug bug !!!!!!!!!!!!!!!!!!!!!!!!!!!! waste my time!!!!!!!!!!!

from pytorch-seq2seq.

lucasjinreal avatar lucasjinreal commented on June 12, 2024

@Hujun-Cui I think this repo is not active maintained now.

from pytorch-seq2seq.

pskrunner14 avatar pskrunner14 commented on June 12, 2024

@jinfagang this has been a recurring issue, however the fix has already been made on the develop branch. Will update on master soon. Please see #180 for a simple workaround.

from pytorch-seq2seq.

rain1024 avatar rain1024 commented on June 12, 2024

I think this should be merged in master now.

from pytorch-seq2seq.

Hexagram-King avatar Hexagram-King commented on June 12, 2024

The wrong code is at line 75 of supervised_trainer.py and line 38 of evaluator.py.
I change them to device = torch.device('cuda:0') if torch.cuda.is_available() else -1 and CUDA is available now.

Except the two files, is there any other file need to fix? After fix the two files, the code still be incorrect...

from pytorch-seq2seq.

isekulic avatar isekulic commented on June 12, 2024

The wrong code is at line 75 of supervised_trainer.py and line 38 of evaluator.py.
I change them to device = torch.device('cuda:0') if torch.cuda.is_available() else -1 and CUDA is available now.

Except the two files, is there any other file need to fix? After fix the two files, the code still be incorrect...

No, but you need to re-install the package after you do these corrections. Running python setup.py install again helped in my case.

from pytorch-seq2seq.

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.