Function deepmd::close_and_delete_session#
Defined in File tf_private.h
Function Documentation#
- inline void deepmd::close_and_delete_session(tensorflow::Session *&session) noexcept#
Close and release an exclusively owned TensorFlow session.
TensorFlow permits concurrent Run calls, but requires them all to finish before the sole Close call. Owners must therefore stop concurrent use before destruction; this helper only centralizes the non-throwing cleanup needed by destructors and partially constructed API objects.
- Parameters:
session – [inout] Exclusively owned session, reset to nullptr.