Changed tensor so that, when reallocating memory, it frees any existing memory
*before* allocating new memory. It used to be the other way around which caused momentary spikes of increased memory usage. This could put you over the total memory available in some cases which is obviously less than ideal behavior.
Showing
Please
register
or
sign in
to comment