The graph object itself is not freed, if I’m not mistaken, but the intermediate activations.
I’m not sure how you could check they are freed, as e.g. you would have to store them in forward hook, which would of course not delete them afterwards.