Skip to content

Instantly share code, notes, and snippets.

View albb762's full-sized avatar

KaijieZheng albb762

View GitHub Profile
@albb762
albb762 / tensorflow_metadata_debug.py
Created December 6, 2018 08:20
#tensorflow#debug#metadata
import tensorflow as tf
from tensorflow.python.client import timeline
a = tf.random_normal([2000, 5000])
b = tf.random_normal([5000, 1000])
res = tf.matmul(a, b)
with tf.Session() as sess:
# add additional options to trace the session execution
options = tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE)