I am using a C++ library that internally uses Tensorflow, so I do not have access to session parameters.
When Tensorflow session is created one can limit GPU memory u