How do I disable libtorch warning

Recently I deployed a program using libtorch (PyTorch C++ API). The program run as expected but its gives me a warning.

Warning: RNN module weights are not part of single contiguous chunk of memory. This means they need to be compacted at every call, possibly greatly increasing memory usage. To compact weights again call flatten_parameters().

How do I disable the warning ?

Topic c++ pytorch rnn

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.