Skip to content

Memory leak question #70

Closed
Closed

Description

@karloballa

I have this simple (pointless) loop:

auto input = cppflow::tensor(inData, shape);
for (size_t i = 0; i < 50000; i++)
auto res = model(input);

It eats memory in every iteration. It seems that in every iteration it makes 2 additional allocations. I'm not sure where I'm wrong.

Thanks,

Activity

  1. karloballa commented on Nov 20, 2020

    @karloballa
    Author

    After about 20000 forward steps the net eats more than half GB of the heap.
    Any opinions?

    cppflow1
    cppflow2

  2. serizba commented on Nov 24, 2020

    @serizba
    Owner

    Hi @karloballa,

    As others have pointed (#69) there is a leak in the call operator. It may be the source of your problem. You can check the PR where there is a proposal to fix it. At the moment we are working to merge the changes.

    Thanks

  3. shyney7 commented on Jan 13, 2021

    @shyney7

    @karloballa this should be fixed since #69 was merged. At least into the cppflow2 branch. Can you confirm this and close this issue if its fixed?

  4. karloballa commented on Jan 15, 2021

    @karloballa
    Author

    It is ok now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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