Giter VIP home page Giter VIP logo

Comments (4)

wangliangguo avatar wangliangguo commented on June 23, 2024

tf.nn.rnn_cell.LSTMCell

from pointer-network-tensorflow.

fd3kyt avatar fd3kyt commented on June 23, 2024

It seems that tf 0.12.1 doesn't have dynamic_rnn_decoder or simple_decoder_fn_train, I made it work on tf 1.0.0.

In layers.py:
replace

LSTMCell = rnn.LSTMCell
MultiRNNCell = rnn.MultiRNNCell
dynamic_rnn_decoder = seq2seq.dynamic_rnn_decoder
simple_decoder_fn_train = seq2seq.simple_decoder_fn_train

to

LSTMCell = tf.contrib.rnn.LSTMCell
MultiRNNCell = tf.contrib.rnn.MultiRNNCell
dynamic_rnn_decoder = tf.contrib.seq2seq.dynamic_rnn_decoder
simple_decoder_fn_train = tf.contrib.seq2seq.simple_decoder_fn_train

In model.py: change all tf.concat_v2 to tf.concat.

After that, it will still complain that tf.contrib.layers doesn't contain utils. I modified site-packages/tensorflow/contrib/layers/__init__.py, adding 'utils' into _allowed_symbols, and it worked. Perhap there is a better way to do this.

from pointer-network-tensorflow.

tuan3w avatar tuan3w commented on June 23, 2024

I changed file model.py as link, and it worked with tensorflow v1.0 without any modification in tensorflow library.

from pointer-network-tensorflow.

unnir avatar unnir commented on June 23, 2024

why did you close this issue? I still have the same problem

from pointer-network-tensorflow.

Related Issues (15)

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.