GithubHelp home page GithubHelp logo

Comments (10)

dengxiaotian123 avatar dengxiaotian123 commented on August 17, 2024

请问怎么解决的,我和你遇到一样的问题

from dynamic-seq2seq.

ComingLeaves avatar ComingLeaves commented on August 17, 2024

请问怎么解决的,我和你遇到一样的问题
至今依旧没有解决,我尝试更改代码,并按照网络论坛给出的方法,截断logits与label长度一致,但很遗憾没有起到作用。

from dynamic-seq2seq.

yanwii avatar yanwii commented on August 17, 2024

试着调整 encoder_vocab_size, decoder_vocab_size这两个参数

from dynamic-seq2seq.

dengxiaotian123 avatar dengxiaotian123 commented on August 17, 2024

试着调整 encoder_vocab_size, decoder_vocab_size这两个参数

self.encoder_vocab_size = data_map.get("Q_vocab_size")是根据词表的个数来的,并非自行设置的,应该是没有错的吧,只要训练step超过100就会报错。训练到101 就会报错

from dynamic-seq2seq.

ComingLeaves avatar ComingLeaves commented on August 17, 2024

试着调整 encoder_vocab_size, decoder_vocab_size这两个参数

self.encoder_vocab_size = data_map.get("Q_vocab_size")是根据词表的个数来的,并非自行设置的,应该是没有错的吧,只要训练step超过100就会报错。训练到101 就会报错

动态lstm里有encoder_vocab_size和decoder_vocab_size两参数,但是不知道具体意义,seq2seq文件的初始化里的两个参数是根据预料分词来的,不能做改变。我看到后面进行序列编码时,用的是它的长度,最后得出来logits与label长度不一致报错。昨天调过两个参数,依旧还是老样子。

from dynamic-seq2seq.

yanwii avatar yanwii commented on August 17, 2024

请问一下你们的TensorFlow是什么版本的。

from dynamic-seq2seq.

ComingLeaves avatar ComingLeaves commented on August 17, 2024

请问一下你们的TensorFlow是什么版本的。

Tensorflow-GPU 1.5

from dynamic-seq2seq.

ComingLeaves avatar ComingLeaves commented on August 17, 2024

请问,你在嵌入层是如何实现中文序列化?独热编码还是其他的方式,我看到生成的文本内容不像是one hot矩阵,像是16进制

from dynamic-seq2seq.

zx1097133696 avatar zx1097133696 commented on August 17, 2024

试着调整encoder_vocab_sizedecoder_vocab_size这两个参数

self.encoder_vocab_size = data_map.get(“ Q_vocab_size”)是根据词表的个数来的,而不是永久设置的,应该是没有错的吧,只要训练step超过100就会报错。训练到101就会报错

解决这个问题了嘛

from dynamic-seq2seq.

ComingLeaves avatar ComingLeaves commented on August 17, 2024

from dynamic-seq2seq.

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.