Two related questions:

if I create an nn.Dropout(0), does this get ‘shortcutted’ out, to become essentially an Identity function, by an if statement inside F.dropout?
if it doesnt, what is the performance impact (if any) if I dont add such if dropout > 0: guards myself?

(edit: since currently my code is filled with such guards  and I’m thinking of removing them)