How to measure the time of execution of running a given task in the session?
sess.run(variables)
How to measure the time of execution of running a given task in the session?
sess.run(variables)
You can use the python time
package, as Tensorflow authors did in the AlexNet Benchmark
start_time = time.time()
_ = session.run(variables)
duration = time.time() - start_time
print(duration)