Comments (6)
需要手动创建 .../workspace/train_data 目录
from ossas_chatbot.
手动创建目录后问题已解决,但构建训练模型时出现问题,报错信息如下:
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.
代码当前使用的tensorflow版本为2.1.0, 在python版本为3.7下运行正常。
能否尝试更换tensorflow版本?
from ossas_chatbot.
更换版本后问题已解决。
Thanks!
from ossas_chatbot.
另外报告一个小问题:xlsxwriter
也应被写进requirements.txt
里。
from ossas_chatbot.
requirements已更新。感谢
from ossas_chatbot.
Related Issues (20)
- 出现fail to load the native tensorflow runtime HOT 1
- Error import TensorFlow 1.5.0 (import tensorflow as tf)
- 动态链接库(DLL)初始化例程失败
- 能运行在mac上吗 ? HOT 2
- 搞笑的不正常 HOT 1
- 关于QQ信息记录导入的修改
- 闪退 HOT 2
- 想复现一个需要掌握哪些知识
- 训练结束后没有反馈
- 缓存问题 HOT 1
- 使用Coolq接口时报错 HOT 1
- 有无类似CoolQ的替代品 HOT 2
- 那么多数据怎么标记更快呢? HOT 1
- 为什么进行对话时机器人不讲话呢,直接空白行,然后就又让我说
- batchSize > 1时,INVALID_ARGUMENT: required broadcastable shapes HOT 2
- KeyError: 'input'
- 闪退,求大佬
- coolq已经停止支持了
- 希望可以支持表情包 HOT 1
- 训练模型时报错: Incompatible shapes: [14] vs. [14,50] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ossas_chatbot.