Guest User

Untitled

a guest
Mar 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import tensorflow as tf
  3. import tensorflow.contrib.eager as tfe
  4. import numpy as np
  5. import time
  6. tfe.enable_eager_execution()
  7. while True:
  8. start = time.time()
  9. conv_layer = tf.layers.Conv2D(filters=5, kernel_size=3)
  10. random_input = np.random.normal(size=(1, 10, 10, 3)).astype(np.float32)
  11. _ = conv_layer(tf.convert_to_tensor(random_input))
  12. print(time.time() - start)
Add Comment
Please, Sign In to add comment