Git Product home page Git Product logo

Comments (12)

David-Levinthal avatar David-Levinthal commented on April 28, 2024 15

I believe this can be fixed by modifying seq2seq/seq2seq/contrib/seq2seq/helper.py per the instructions in:
https://github.com/google/seq2seq/pull/254/files

#from tensorflow.contrib.distributions.python.ops import bernoulli
#from tensorflow.contrib.distributions.python.ops import categorical
try:
from tensorflow.python.ops.distributions import bernoulli
from tensorflow.python.ops.distributions import categorical
except:
from tensorflow.contrib.distributions.python.ops import bernoulli
from tensorflow.contrib.distributions.python.ops import categorical
seems to work for me now with 1.3 rc0 and R1.2

from seq2seq.

wandabwa2004 avatar wandabwa2004 commented on April 28, 2024 10

@David-Levinthal is right. Just replace these lines in seq2seq/helper.py:

from tensorflow.contrib.distributions.python.ops import bernoulli
from tensorflow.contrib.distributions.python.ops import categorical

with these:

from tensorflow.python.ops.distributions import bernoulli
from tensorflow.python.ops.distributions import categorical

I'm running tensorflow 1.2

from seq2seq.

sheerun avatar sheerun commented on April 28, 2024 7

I get the same error for tensorflow 1.2.1

from seq2seq.

tangzhenyu avatar tangzhenyu commented on April 28, 2024

Is this framework not support the version of tensorflow0.12.1?

from seq2seq.

dennybritz avatar dennybritz commented on April 28, 2024

Yes, you need Tensorflow 1.0.

from seq2seq.

tangzhenyu avatar tangzhenyu commented on April 28, 2024

alright,thanks

from seq2seq.

shawnnylxx avatar shawnnylxx commented on April 28, 2024

same error in tensorflow 1.2.1
it is OK when downgrade to tensorflow 1.0.1

from seq2seq.

David-Levinthal avatar David-Levinthal commented on April 28, 2024

broken in R1.3rc0

from seq2seq.

jhancock1975 avatar jhancock1975 commented on April 28, 2024

I just ran into the same thing using tensorflow 1.3.0. Should I create a pull request, or has someone already created one?

from seq2seq.

chenchiwei avatar chenchiwei commented on April 28, 2024

I got the same problem in tensorflow 1.4.1

from seq2seq.

NajeebTyson avatar NajeebTyson commented on April 28, 2024

same problem with tensorflow 1.5.0

from seq2seq.

enockipp avatar enockipp commented on April 28, 2024

same problem with tf 1.5.0

from 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.