Last active
November 1, 2017 03:27
-
-
Save yaroslavvb2/440ea9a6c01c84b9ed8a2ca8f5762946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install tf-nightly-gpu | |
python | |
from tensorflow.contrib.eager.python import tfe | |
tfe.enable_eager_execution() | |
a = tf.random_uniform((10,)) | |
b = tf.random_uniform((10,)) | |
for i in range(100): | |
a = a*a | |
if a[0]>b[0]: | |
break | |
print(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before
from tensorflow.contrib.eager.python import tfe
, did you forget toimport tensorflow as tf
?