Git Product home page Git Product logo

Comments (9)

 avatar commented on July 17, 2024 7

I just add one line partition = partition.view(partition.size()[0], partition.size()[1], 1)in function _viterbi_decode in the for loop,now it can run,thank you very much.

from ncrfpp.

Shuailong avatar Shuailong commented on July 17, 2024 4

partition = partition.unsqueeze(-1) works also.

from ncrfpp.

nthoangcute avatar nthoangcute commented on July 17, 2024 1

partition = partition.unsqueeze(-1) works also.

Your method is not working.

from ncrfpp.

jiesutd avatar jiesutd commented on July 17, 2024

Hi @Charleyfeng , I am not sure about where the problem is based on this simple error message. If you use the correct data input, I guess the problem may be caused by the version of PyTorch. Please make sure you use the PyTorch 0.3.0

If you are using right version, then further debug is needed.

from ncrfpp.

 avatar commented on July 17, 2024

My torch version is 0.3.1.post2.

from ncrfpp.

jiesutd avatar jiesutd commented on July 17, 2024

Then you may seperate the error sentence into several lines to see where does this error message come from (I guess it comes from function cat or view). Then for the error function, you may check its input shape and output shape to see if they are compatible

from ncrfpp.

 avatar commented on July 17, 2024

Ok,Thank you,I will check what you have mentioned,and if any result,I will post here.

from ncrfpp.

jiesutd avatar jiesutd commented on July 17, 2024

cool!

from ncrfpp.

GaYounKoh avatar GaYounKoh commented on July 17, 2024

Hi sir,
I'm student learning ML/DL.
Today, I got a same error msg from my torch code.
Could you plz tell me what's the code file belongs to this issue?

from ncrfpp.

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.