Announcing the TensorFlow Dev Summit 2020 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()