startTime = datetime.now()
m1 = tf.truncated_normal([dim, dim], mean=0.0, stddev=0.02, dtype=tf.
    float32, seed=1)
sess = tf.Session()
sess.run(m1)
print(datetime.now() - startTime)
How to print the value of a Tensor object in TensorFlow?