Skip to content

CUDA out of memory. Tried to allocate 254.00 MiB (GPU 0; 8.00 GiB total capacity; 6.15 GiB already allocated; 15.44 MiB free; 6.19 GiB reserved in total by PyTorch) #3

@MaryaRasib

Description

@MaryaRasib

I have successfully run the train.py code , with batch size 4. But, when i try to run the test.py file i got this error
"CUDA out of memory. Tried to allocate 254.00 MiB (GPU 0; 8.00 GiB total capacity; 6.15 GiB already allocated; 15.44 MiB free; 6.19 GiB reserved in total by PyTorch)"
please help me in solving this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions