# tf.contrib.memory_stats.MaxBytesInUse

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/memory_stats/python/ops/memory_stats_ops.py#L39-L41) |

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

    tf.contrib.memory_stats.MaxBytesInUse()