torch.memory.isFinalizationEnabled function isFinalizationEnabled(): boolean Check if automatic finalization is enabled. Returns boolean