针对于[w pthreadpool-cpp.cc:90] Warning:Leaking caffe2 thread-pool after fork.(function pthreadpool)问题解决方案
具体问题:
[w pthreadpool-cpp.cc:90] Warning:Leaking caffe2 thread-pool after fork.(function pthreadpool)
问题产生原因:
在fork操作之后,caffe2线程池(thread-pool)发生了泄漏。
解决方案:
当计算机的内存充足的时候,可以设置pin_memory=True
当系统卡住,或者交换内存使用过多的时候,设置pin_memory=False