Giter VIP home page Giter VIP logo

Comments (2)

GrittyChen avatar GrittyChen commented on June 7, 2024

训练报错 Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7,
什么版本的pytoch可以使用?

可以考虑使用低版本的PyTorch,比如1.4版本,如果方便的话,请告知一下具体报错的代码位置,我们会尽快修复这个bug,谢谢!

from thumt.

leileilin avatar leileilin commented on June 7, 2024

训练报错 Providing a bool or integral fill value without setting the optional dtype or out arguments is currently unsupported. In PyTorch 1.7,
什么版本的pytoch可以使用?

可以考虑使用低版本的PyTorch,比如1.4版本,如果方便的话,请告知一下具体报错的代码位置,我们会尽快修复这个bug,谢谢!

在inference.py中的init_seqs = torch.full([batch_size, beam_size, 1], bos_id, device=device)加上dtype=torch.long应该可以解决。

from thumt.

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.