tf.contrib.memory_stats.MaxBytesInUse

View source on GitHub

Generates an op that computes the peak memory of a device.