Tag: correctness

Pytorch assign in place mod

Detects if a torch variable is modified in place inside an assignment.

Pytorch miss call to eval

Checks if eval() is called before validating or testing a model.

Pytorch redundant softmax

Detects if Softmax is used with CrossEntropyLoss.

Tensorflow redundant softmax

Detects if Softmax is explicitly computed.

Notebook invalid execution order

Notebook has uninitialized variable usage given the execution order

Pytorch sigmoid before bceloss

The computation of the bceloss using sigmoid values as inputs can be replaced by a single BCEWithLogitsLoss which is numerically more stable.

Pytorch avoid softmax with nllloss

Checks if Softmax is used with NLLLoss function.

Pytorch miss call to zero grad

Zero out the gradients before doing a backward pass