harvard-acc/smaug

Workspace::addTensor may leak memory if a Tensor name is reused

xyzsam opened this issue · 0 comments

Workspace::addTensor can blindly overwrites an existing Tensor by the same name, causing memory leaks. We should enforce that no Tensor in the Network can have the same name.

The same goes for addTiledTensor.