yes I'll use this, now I found another method called cudagpumat.empty() cudagpumat.empty() so if gpumat is none it's returning True. For now I'm using this method but I'll check your answer and will update you.Thanks for Efforts :)