Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running error in main_conv_lstm.py #6

Open
amiltonwong opened this issue Jun 13, 2017 · 1 comment
Open

running error in main_conv_lstm.py #6

amiltonwong opened this issue Jun 13, 2017 · 1 comment

Comments

@amiltonwong
Copy link

Hi, @loliverhennigh ,

I got the following error. Any suggestion?

init network from scratch
WARNING:tensorflow:Passing a `GraphDef` to the SummaryWriter is deprecated. Pass a `Graph` object instead, such as `sess.graph`.
Traceback (most recent call last):
  File "main_conv_lstm.py", line 187, in <module>
    tf.app.run()
  File "/root/anaconda3/envs/tf_1.0/lib/python3.5/site-packages/tensorflow/python/platform/app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "main_conv_lstm.py", line 184, in main
    train()
  File "main_conv_lstm.py", line 146, in train
    dat = generate_bouncing_ball_sample(FLAGS.batch_size, FLAGS.seq_length, 32, FLAGS.num_balls)
  File "main_conv_lstm.py", line 39, in generate_bouncing_ball_sample
    dat[i, :, :, :, :] = b.bounce_vec(32, num_balls, seq_length)
  File "/data/code/Convolutional-LSTM-in-Tensorflow/bouncing_balls.py", line 181, in bounce_vec
    x,v = bounce_n(T,n,r,m);
  File "/data/code/Convolutional-LSTM-in-Tensorflow/bouncing_balls.py", line 40, in bounce_n
    if r==None: r=array([4.0]*n)
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
@VV123
Copy link

VV123 commented Sep 2, 2017

change r==None to r is None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants