Teaism
Teaism copied to clipboard
Global Tensors' garbage collection
put a reference of Tensors into a list in the global session whenever Tensor::CreateTensorCPU/GPU are called.
call session->free_tensors() to free all the memory allocated to the Tensors and set references to NULLs.