"csrc/transformer_bak/normalize_kernels.hip" did not exist on "ab5534fc4c0f8ca21ada321f9730d723aa31288b"
conftest.py 152 Bytes
Newer Older
yyy's avatar
yyy committed
1
2
3
4
5
6
7
8
9
10
import pytest
import torch

def clear_gpu_memory():
    '''
    clear GPU memory
    '''
    torch.cuda.empty_cache()
    print("GPU memory cleared.")