Unverified Commit 8cd2d6fe authored by Derek Murray's avatar Derek Murray Committed by GitHub
Browse files

[tf.py_func()] Check Python interpreter state before call

Attempting to acquire the GIL in a destructor when the process is terminating can fail, leading to a hang. Fixes #21277.
parent d07564b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment