Network module memory is not released in C++ libtorch I tested the example code in this issue https://github.com/pytorch/pytorch/issues/106255