Cupy中大量OutOfMemoryError忽略异常提示的问题求助
Cupy中大量OutOfMemoryError忽略异常提示的问题求助
大家好,我在使用Cupy的时候遇到了一个头疼的问题——控制台里不停地弹出被忽略的OutOfMemoryError相关提示,示例如下:
Exception ignored in: 'cupy.cuda.thrust.cupy_malloc' Traceback (most recent call last): File "cupy/cuda/memory.pyx", line 738, in cupy.cuda.memory.alloc File "cupy/cuda/memory.pyx", line 1424, in cupy.cuda.memory.MemoryPool.malloc File "cupy/cuda/memory.pyx", line 1445, in cupy.cuda.memory.MemoryPool.malloc File "cupy/cuda/memory.pyx", line 1011, in cupy.cuda.memory.SingleDeviceMemoryPool.malloc File "cupy/cuda/memory.pyx", line 1032, in cupy.cuda.memory.SingleDeviceMemoryPool._malloc File "cupy/cuda/memory.pyx", line 1267, in cupy.cuda.memory._try_malloc File "cupy/cuda/memory.pyx", line 1259, in cupy.cuda.memory._try_malloc cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 16777216 bytes (allocated so far: 1073741824 bytes)
这些提示信息实在太多了,严重干扰了正常的日志查看,想请教一下有没有办法抑制或者处理这类被忽略的异常提示?
内容来源于stack exchange
相关产品推荐
相关产品推荐

