Comments (8)
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.
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.
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.
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.
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.
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.
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#47TL;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.
Please reopen if this issue reoccurs.
from word-rnn-tensorflow.
Related Issues (20)
- how to encode Korean text input file? HOT 1
- Output format. HOT 2
- How I can continue train.py after reboot? HOT 3
- TensorBoard - Embedding Projector
- Writing the output into a file instead of printing in console
- Retrain with new input files?
- example not working HOT 3
- Vocab index ordering?
- Word Embeddings
- Pause training HOT 1
- UnicodeEncodeError When Training With Different Encoding
- Seperate graphes when not restoring old dataset
- Not sure where to go from here, please help.
- Error when trying to train. HOT 5
- My project and sample output
- How to predict the best word from set of words?
- How can i get the probability of each word?
- Hello, any idea for creating a new article with the same meaning according to the given articles HOT 1
- Not Training/Sampling Properly
- can we use it to predict the next word(token) while the user are inputting?
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 word-rnn-tensorflow.