Created
August 3, 2018 20:39
-
-
Save lxuechen/bf2eee0bb1f94c65907d6a6e0828ee79 to your computer and use it in GitHub Desktop.
defun vs autograph
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
def tensor_square(x, stop_when): # x is scalar Tensor | |
cnt = 0 | |
while x < stop_when: | |
x = tf.square(x) | |
cnt += 1 | |
return cnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment