Skip to content

Memory Leak when create Tensor for a training session #87

Closed
@lucataglia

Description

@lucataglia

@eaplatanios Here the gist that contains the code I used to reproduce the memory leak:
https://gist.github.com/lucaRadicalbit/e45d895b859797f010d856ac8aa22a13

Basically I create two tensor and inside an infinite loop and then I run the session using that tensors as feeds. Using VisualVM after 8000 iterations (about 6 minutes) the situation was:

sampler

heap

As can be notice looking at the gist I also tried to use the close() method on the tensors but it didn't help. I don't know if there is something that I misunderstood about how the heap is handled or if there is actually a memory leak like it seem to be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions