Skip to content

Run out of memory #1887

@JianLiu91

Description

@JianLiu91

Test code:

encoder = nn.GRU(100, 100)
encoder.cuda()

hidden = Variable(torch.randn(1, 1, 100)).cuda()
output = ''

num = 0
while True:
    output, hidden = encoder(hidden, hidden)
    print num + 1
    num +=1

The GPU memory usage keeps growing, and ends up in out of memory.

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