TensorFlow 2.0 Beta is available Learn more

tf.contrib.memory_stats.MaxBytesInUse

View source on GitHub

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

tf.contrib.memory_stats.MaxBytesInUse()