Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Ritvik19
/
marker-io
like
4
Running
App
Files
Files
Community
3cb2b29
marker-io
/
marker
/
utils.py
Ritvik19
Add all files and directories
c8a32e7
6 months ago
raw
Copy download link
history
blame
Safe
156 Bytes
import
torch
from
marker.settings
import
settings
def
flush_cuda_memory
():
if
settings.TORCH_DEVICE_MODEL ==
"cuda"
:
torch.cuda.empty_cache()