Skip to content

pytorch's gpu memory usage is ceaselessly grow up #1840

@dgai91

Description

@dgai91

i have got the pytorch tutorial code on http://pytorch.org/tutorials/beginner/nlp/advanced_tutorial.html
and i try to switch it to a GPU version but when i run this code, the memory grows unlimitly until OOM
the text at the last line is my gpu version code
i'm new for pytorch, plz give me some advise,thx all of you
cuda_bilstmcrf.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions