Git Product home page Git Product logo

Comments (1)

XiaoyuanYi avatar XiaoyuanYi commented on July 20, 2024

您好,十分抱歉一直没注意到issue。
因为在beam search的过程中能够,一些beam候选可能会提前生成结束(生成了句尾符),然后被移除beam,此时剩余的beam数据改变,因此对应的states, 如hidden, memory等的batch size也需要相应变化,所以重新做了索引,选取了剩余的部分。此时只需要各种状态中统一索引下标属于统一beam candidate即可。不同beam candidate之间的相互位置有变化不影响结果,因为各个beam candidate是独立的。

之前我们升级了代码的python版本和tensorflow版本,一些细节也进行了优化,如有问题欢迎提出。

from wmpoetry.

Related Issues (7)

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.