What does torch.backends.cudnn.benchmark do?

Can you show an example on how to use this line? Can you place it anywhere in the code? Or before the forward pass?

1 Like