Coder Social home page Coder Social logo

Comments (6)

Dimsmary avatar Dimsmary commented on August 21, 2024

需要手动创建 .../workspace/train_data 目录

from ossas_chatbot.

Fidelxyz avatar Fidelxyz commented on August 21, 2024

手动创建目录后问题已解决,但构建训练模型时出现问题,报错信息如下:

Sun Apr 12 15:29:59 2020 构建训练模型...
Traceback (most recent call last):
  File "/Users/xxx/Documents/GitHub/Ossas_ChatBot/main.py", line 109, in <module>
    rnn.setup_model()
  File "/Users/xxx/Documents/GitHub/Ossas_ChatBot/Seq2Seq.py", line 134, in setup_model
    attention = Flatten()(attention)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 781, in __call__
    self._set_mask_metadata(inputs, outputs, previous_mask)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 842, in _set_mask_metadata
    output_mask = self.compute_mask(inputs, previous_mask)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/keras/engine/base_layer.py", line 1036, in compute_mask
    raise TypeError('Layer ' + self.name + ' does not support masking, '
TypeError: Layer flatten does not support masking, but was passed an input_mask: Tensor("encoder_Embedding/NotEqual:0", shape=(?, ?), dtype=bool)

from ossas_chatbot.

Dimsmary avatar Dimsmary commented on August 21, 2024

代码当前使用的tensorflow版本为2.1.0, 在python版本为3.7下运行正常。
能否尝试更换tensorflow版本?

from ossas_chatbot.

Fidelxyz avatar Fidelxyz commented on August 21, 2024

更换版本后问题已解决。
Thanks!

from ossas_chatbot.

Fidelxyz avatar Fidelxyz commented on August 21, 2024

另外报告一个小问题:xlsxwriter也应被写进requirements.txt里。

from ossas_chatbot.

Dimsmary avatar Dimsmary commented on August 21, 2024

requirements已更新。感谢

from ossas_chatbot.

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.