Giter Club home page Giter Club logo

Comments (3)

Finley1991 avatar Finley1991 commented on August 13, 2024

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.

minda163 avatar minda163 commented on August 13, 2024

遇到类似的问题,把tensorflow改为1.10版本也没有用,还有其他的思路没有啊??
image

image

from seq2seq-chinese-textsum.

Finley1991 avatar Finley1991 commented on August 13, 2024

from seq2seq-chinese-textsum.

Related Issues (8)

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.