Memory out issue in cuda

Hi all,
I am using GPU: RTX3080 with ubunto version 22.04
Cuda Version 11.7
when i try to run my training code i face this issue
1525 or _global_backward_pre_hooks or _global_backward_hooks
1526 or _global_forward_hooks or _global_forward_pre_hooks):
→ 1527 return forward_call(*args, **kwargs)
1529 try:
1530 result = None

File ~/anaconda3/envs/13-Dec_DL_code/lib/python3.9/site-packages/torch/nn/modules/, in MaxPool2d.forward(self, input)
165 def forward(self, input: Tensor):
→ 166 return F.max_pool2d(input, self.kernel_size, self.stride,
167 self.padding, self.dilation, ceil_mode=self.ceil_mode,
168 return_indices=self.return_indices)

File ~/anaconda3/envs/13-Dec_DL_code/lib/python3.9/site-packages/torch/, in boolean_dispatch..fn(*args, **kwargs)
486 return if_true(*args, **kwargs)
487 else:
→ 488 return if_false(*args, **kwargs)

File ~/anaconda3/envs/13-Dec_DL_code/lib/python3.9/site-packages/torch/nn/, in _max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode, return_indices)
789 if stride is None:
790 stride = torch.jit.annotate(List[int], )
→ 791 return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)

OutOfMemoryError: CUDA out of memory. Tried to allocate 64.00 MiB. GPU 0 has a total capacty of 9.77 GiB of which 62.44 MiB is free. Process 1208 has 217.56 MiB memory in use. Process 47813 has 7.84 GiB memory in use. Including non-PyTorch memory, this process has 1.38 GiB memory in use. Of the allocated memory 1.12 GiB is allocated by PyTorch, and 9.97 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Selection deleted

It seems the majority of the memory is used by another process so check what it is.

How can i check from my understanding no other process is running except the code