Obtaining memory stats in libtorch

In python you can use torch.cuda.memory_stats() to get statistics about the memory used. Is there anything similar you can do in libtorch?