Giter VIP home page Giter VIP logo

Comments (8)

wichtounet avatar wichtounet commented on May 18, 2024 2

I made a PR but using sess.run(x) instead of convert_to_tensor and then eval. I tested it on two machines one with standard installation and one with CUDA installation (the one with the original issue).

from word-rnn-tensorflow.

zichaow avatar zichaow commented on May 18, 2024

I got exactly the same problem with Python 2.7. I think the problem comes from initial_tuple which is organized as a tuple. Previously it is not a tuple.

from word-rnn-tensorflow.

hunkim avatar hunkim commented on May 18, 2024

Thanks! Do you know which version of TF did you use?

On Fri, Sep 2, 2016 at 7:35 AM, moonlightlane [email protected]
wrote:

I got exactly the same problem with Python 2.7. I think the problem comes
from initial_tuple which is organized as a tuple. Previously it is not a
tuple.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA3DV4S8kxLDQcDSE4tSMp-8__KUfFC5ks5ql2FJgaJpZM4Jq9_O
.

from word-rnn-tensorflow.

zichaow avatar zichaow commented on May 18, 2024

I think it is 0.10. There are some posts on github about this issue but none of them work for me... model.initial_state looks like this: (LSTMStateTuple(c=<tf.Tensor 'zeros:0' shape=(50, 128) dtype=float32>, h=<tf.Tensor 'zeros_1:0' shape=(50, 128) dtype=float32>), LSTMStateTuple(c=<tf.Tensor 'zeros_2:0' shape=(50, 128) dtype=float32>, h=<tf.Tensor 'zeros_3:0' shape=(50, 128) dtype=float32>)) , and it seems that the state is a tuple of tuples. I don't yet have a good idea how to deal with it.

from word-rnn-tensorflow.

hunkim avatar hunkim commented on May 18, 2024

Let me try with 0.10. Thanks!

On Fri, Sep 2, 2016 at 7:56 AM, moonlightlane [email protected]
wrote:

I think it is 0.10. There are some posts on github about this issue but
none of them work for me... model.initial_state looks like this: (LSTMStateTuple(c=<tf.Tensor
'zeros:0' shape=(50, 128) dtype=float32>, h=<tf.Tensor 'zeros_1:0'
shape=(50, 128) dtype=float32>), LSTMStateTuple(c=<tf.Tensor 'zeros_2:0'
shape=(50, 128) dtype=float32>, h=<tf.Tensor 'zeros_3:0' shape=(50, 128)
dtype=float32>))
, and it seems that the state is a tuple of tuples. I don't yet have a
good idea how to deal with it.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#9 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA3DV5LOM5ZpOeXgAPXs3XffQRIOibKTks5ql2Y2gaJpZM4Jq9_O
.

from word-rnn-tensorflow.

astr010 avatar astr010 commented on May 18, 2024

I am using Ubuntu/Linux 64-bit CPU Only, Python 2.7 Tensorflow-0.11 and the work around in the issue below fixed this issue for me
sherjilozair/char-rnn-tensorflow#47

TL;DR
in train.py try replacing the line
state = model.initial_state.eval()
with
model.initial_state = tf.convert_to_tensor(model.initial_state) state = model.initial_state.eval()

from word-rnn-tensorflow.

hunkim avatar hunkim commented on May 18, 2024

Can you write a pull request for us?

Sung

On Wed, Oct 5, 2016 at 11:14 AM, astr010 [email protected] wrote:

I am using Ubuntu/Linux 64-bit CPU Only, Python 2.7 Tensorflow-0.11 and
the work around in the issue below fixed this issue for me
sherjilozair/char-rnn-tensorflow#47
sherjilozair/char-rnn-tensorflow#47

TL;DR
in train.py try replacing the line
state = model.initial_state.eval()
with
model.initial_state = tf.convert_to_tensor(model.initial_state) state =
model.initial_state.eval()


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#9 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA3DV02yQDz4ftd3YTjC3ij3k8_w3a2yks5qwxX5gaJpZM4Jq9_O
.

from word-rnn-tensorflow.

hunkim avatar hunkim commented on May 18, 2024

Please reopen if this issue reoccurs.

from word-rnn-tensorflow.

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.