mvitez / thnets

Basic library that can run networks created with Torch
Other
173 stars 23 forks source link

memory leak #13

Closed templeblock closed 7 years ago

templeblock commented 7 years ago

memorydebug.zip used my memorydebug, there are some memory leak found! but , i don't know how to fix it.help me!plz.

mvitez commented 7 years ago

What should I run to see the memory leak?

templeblock commented 7 years ago

ref: https://github.com/bibhas2/Memd

mvitez commented 7 years ago

I see, but I am asking what command line I should run to see the leak.

templeblock commented 7 years ago

just run the program,when use THFreeNetwork to free the network, the memory no free. Memd can help to find the memory leak position. sorry for my bad english.

mvitez commented 7 years ago

I've found there is a problem with some new networks that I haven't checked before for memory leaks (in the recently implemented layers Concat etc.). I am looking at it now. Just for information, thnets has its own memory leak research routine, just make it with "make MEMORYDEBUG=1".

templeblock commented 7 years ago

i've test in windows and ios environment, i try to fix it. but the problem drive me crazy. wait for your solution

mvitez commented 7 years ago

The memory leak has been fixed.

templeblock commented 7 years ago

thanks