CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublasCreate(handle)`

RuntimeError: [enforce fail at …\c10\core\CPUAllocator.cpp:75] data. DefaultCPUAllocator: not enough memory: you tried to allocate 50331648 bytes. Buy new RAM!

pytorch:RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling cublasCreate(handle)

batchsize太大,内存不够,从64改到了8,设备太差了。。。


版权声明:本文为qq_42820467原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。