GithubHelp home page GithubHelp logo

Comments (7)

jerryitp avatar jerryitp commented on July 27, 2024 2

I also find the same error "dimension specified as 0 but tensor has no dimensions" using torch-0.3.0. The author used torch-0.2.0 as said in requirement. I guess this is the problem. I haven't try torch-0.2.0 yet.

from lm-lstm-crf.

LiyuanLucasLiu avatar LiyuanLucasLiu commented on July 27, 2024

Hi,
happy holiday :-)
It should be --word_dim 200 instead of --embedding_dim 200.
Best,
Lucas

oh, sorry i didn't notice that you are using train_w instead of train_wc. Actually, for train_w, i'm not quite sure what causes the problem. would look into it later (if i find some time).

from lm-lstm-crf.

 avatar commented on July 27, 2024

Hi,
Thank you,

Happy holiday :-)

Sahar

from lm-lstm-crf.

assulan avatar assulan commented on July 27, 2024

@saharghannay amd @jerryitp were you guys able to resolve the error?

from lm-lstm-crf.

 avatar commented on July 27, 2024

no, not yet

from lm-lstm-crf.

HuimengZhang avatar HuimengZhang commented on July 27, 2024

Also got the same issue here. No idea what caused it.

But I did try installing a previous version of PyTorch(0.2.0.post3), the error was avoided.

from lm-lstm-crf.

jorditg avatar jorditg commented on July 27, 2024

On Pytorch 0.3.1.post2

With tensors works fine:

a = torch.FloatTensor()
b = torch.rand(2,3)
a=torch.cat([a.clone(),b])

With Variables ERROR:

a = torch.autograd.Variable(torch.FloatTensor(), requires_grad=True)
b = torch.autograd.Variable(torch.rand(2,3), requires_grad=True)
a=torch.cat([a.clone(),b])

RuntimeError: dimension specified as 0 but tensor has no dimensions

from lm-lstm-crf.

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.