Infermo icon indicating copy to clipboard operation
Infermo copied to clipboard

Memory Leak

Open andresnowak opened this issue 1 year ago • 2 comments

There seems to be a memory leak in the program, at the end of the test_infermo, the program uses sometimes 6gb of memory.

andresnowak avatar Nov 27 '23 19:11 andresnowak

There seems to be a memory leak in the program, at the end of the test_infermo, the program uses sometimes 6gb of memory.

Damn, again. Thanks for pointing it out, I will try to fix this.

TilliFe avatar Nov 27 '23 19:11 TilliFe

Its a result of

let input = Tensor(shape(32, 1)).randu(0, 1).dynamic()
let true_vals = sin(15.0 * input)

Being inside the for loop of the test_linear file.

Benny-Nottonson avatar Jan 15 '24 22:01 Benny-Nottonson