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

train_letters.py not running #10

Open
RaziAhm opened this issue Feb 11, 2018 · 4 comments
Open

train_letters.py not running #10

RaziAhm opened this issue Feb 11, 2018 · 4 comments

Comments

@RaziAhm
Copy link

RaziAhm commented Feb 11, 2018

Traceback (most recent call last):
File "train_letters.py", line 61, in
net.train(data=data, dropout=.6, display_step=10, test_step=1000) # run resume
File "/usr/local/lib/python3.5/dist-packages/layer/net.py", line 438, in train
tf.add_check_numerics_ops()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/ops/numerics.py", line 90, in add_check_numerics_ops
raise ValueError("tf.add_check_numerics_ops() is not compatible " ValueError: tf.add_check_numerics_ops() is not compatible with TensorFlow control flow operations such as tf.cond() or tf.while_loop().

@gewenpulan
Copy link

i met this err too
my tensorflow version is 1.4.0 i guess use last version is ok

@pannous
Copy link
Owner

pannous commented Mar 2, 2018

just tried with tensorflow 1.5.0
ok

@Parkwdllcr
Copy link

reinstall!

@maky-hnou
Copy link

I tried with different versions of Tensorflow including 1.5.0, but I still get the same error:

learning_rate: 0.000300
Traceback (most recent call last):
  File "train_letters.py", line 61, in <module>
    net.train(data=data, dropout=.6, display_step=10, test_step=1000) # run resume
  File "~/.virtualenvs/hocr/lib/python3.6/site-packages/layer/net.py", line 438, in train
    tf.add_check_numerics_ops()
  File "~/.virtualenvs/hocr/lib/python3.6/site-packages/tensorflow/python/ops/numerics.py", line 90, in add_check_numerics_ops
    raise ValueError("`tf.add_check_numerics_ops() is not compatible "
ValueError: `tf.add_check_numerics_ops() is not compatible with TensorFlow control flow operations such as `tf.cond()` or `tf.while_loop()`.

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

5 participants