when i try torch.autograd.detect_anomaly(True)
TypeError                                 Traceback (most recent call last)
 in 
TypeError: init() takes 1 positional argument but 2 were given
torch.autograd.set_detect_anomaly() works so i am trying it