Giter Club home page Giter Club logo

Comments (9)

xuzhao9 avatar xuzhao9 commented on July 17, 2024 1

Yes, we should close this issue because it is not relevant anymore.

from benchmark.

FedericOldani avatar FedericOldani commented on July 17, 2024

I confirm the bug

from benchmark.

apaszke avatar apaszke commented on July 17, 2024

Please follow the issue template and at least post a minimal example that would let us reproduce this error.

from benchmark.

FedericOldani avatar FedericOldani commented on July 17, 2024

The error is raised when I run rnns\fastrnns\custom_lstm.py (I renamed it 'lstm_test.py')
The problem is in the test of bidirectional lstm, the Traceback error is posted above.
Thank you for your help

from benchmark.

surgan12 avatar surgan12 commented on July 17, 2024

@FedericOldani

https://github.com/pytorch/pytorch/blob/44a607b90c9bba0cf268f833bae4715221346709/torch/jit/annotations.py#L33

Check this in the annotations.py of your pytorch version.
Probably this is missing .

from benchmark.

kangkang59812 avatar kangkang59812 commented on July 17, 2024

So how to fix this ? update to pytorch1.1 ?
I use pytorch1.0.1 and in annotations.py it has

_eval_env = {
    'torch': Module('torch', {'Tensor': torch.Tensor}),
    'Tensor': torch.Tensor,
    'typing': Module('typing', {'Tuple': Tuple}),
    'Tuple': Tuple,
}

from benchmark.

FedericOldani avatar FedericOldani commented on July 17, 2024

For fast fixing, I remove all the lines @jit.script_method. Let me know if you solve the problem.

from benchmark.

kangkang59812 avatar kangkang59812 commented on July 17, 2024

@FedericOldani But it seems that the custom lstm has no relation with jit . It also woks if class LSTMCell(nn.Module) without undering jit. And LSTMCell(nn.Module) runs faster than LSTMCell(jit.Module).

from benchmark.

spzala avatar spzala commented on July 17, 2024

I was looking at the issue from triage aspect, and I couldn't reproduce the error, and I see don't rnns\fastrnns\custom_lstm.py anymore. Perhaps, the issue is not relevant and now and we should close. Thanks! cc @xuzhao9

from benchmark.

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.