Guest User

Untitled

a guest
Jul 17th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def f(n):
  2. z = []
  3. # We ask you to tell us the element dtype of the list
  4. autograph.set_element_type(z, tf.int32)
  5. for i in range(n):
  6. z.append(i)
  7. # when you're done with the list, stack it
  8. # (this is just like np.stack)
  9. return autograph.stack(z)
Add Comment
Please, Sign In to add comment