Comments (3)
tf0.10.0与之后的版本embedding_attention_seq2seq有些变化,1.10.0版本不会出现,但之后版本会有这个问题。
如果想用多个backuts,会调用module_with_buckets,重复调用会使deepcopy(cell) 产生这个错误
修改\yourpath\tensorflow\contrib\legacy_seq2seq\python\ops\seq2seq.py:
我出现了同样的错误,最后是修改了
packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py 这个文件,
最开始添加一行:import tensorflow as tf
(找到程序报错位置)添加:
setattr(tf.contrib.rnn.GRUCell, 'deepcopy', lambda self, _: self)
setattr(tf.contrib.rnn.BasicLSTMCell, 'deepcopy', lambda self, _: self)
setattr(tf.contrib.rnn.MultiRNNCell, 'deepcopy', lambda self, _: self)
参考网址:https://blog.csdn.net/thormas1996/article/details/80743254
from seq2seq-chinese-textsum.
遇到类似的问题,把tensorflow改为1.10版本也没有用,还有其他的思路没有啊??
from seq2seq-chinese-textsum.
from seq2seq-chinese-textsum.
Related Issues (8)
- 找不到eval模块 HOT 2
- 关于报错的问题,想请教tensorflow的版本号 HOT 2
- 十分想学习一下大神的博客,但是打不开。。 HOT 1
- 打不开博客地址
- 程序报错问题(deepcopy) HOT 1
- 打不开博客地址。。
- 博客地址打不开啊
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 seq2seq-chinese-textsum.