Solved by albanD in post #3 
              
              
                You also have all the functions to get the memory allocated and the memory actually used by tensors. See the doc here for more details.