我正在尝试设置一个断点,它抱怨
ValueError: Fatal exception in the data production loop: signal only works in main thread
它来自https://github.com/tensorflow/models/blob/master/official/recommendation/data_pipeline.py
class BaseDataConstructor(threading.Thread):
...
class BisectionDataConstructor(BaseDataConstructor):
def construct_lookup_variables(self):
import pdb; pdb.set_trace()
start_time = timeit.default_timer()
def lookup_negative_items(self, negative_users, **kwargs):
import pdb; pdb.set_trace()
output = np.zeros(shape=negative_users.shape, dtype=rconst.ITEM_DTYPE) - 1
https://bugs.python.org/issue13120似乎表明它已修复? (它列出了版本:Python 3.2,Python 3.3,Python 3.4,所以我尝试使用3.4并与3.4兼容)...
我也尝试过 pdb cannot break in another thread?,它也给我带来错误
我在ubuntu上使用python 3.7.2