Skip to content

"CUDA error: device-side assert triggered" when I call torch.cude.empty_cache() #843

Description

@blednotik

RuntimeError Traceback (most recent call last)
in
2
3 if cuda_flag:
----> 4 torch.cuda.empty_cache()
5
6 batch_size = 40

~\AppData\Local\Continuum\anaconda3\lib\site-packages\torch\cuda_init_.py in empty_cache()
424 """
425 if _initialized:
--> 426 torch._C._cuda_emptyCache()
427
428

RuntimeError: CUDA error: device-side assert triggered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions