fairseq/modules/grad_multiply.py

Killed 0 out of 2 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 1392

--- fairseq/modules/grad_multiply.py
+++ fairseq/modules/grad_multiply.py
@@ -7,7 +7,7 @@
 
 
 class GradMultiply(torch.autograd.Function):
-    @staticmethod
+
     def forward(ctx, x, scale):
         ctx.scale = scale
         res = x.new(x)

Mutant 1393

--- fairseq/modules/grad_multiply.py
+++ fairseq/modules/grad_multiply.py
@@ -13,7 +13,6 @@
         res = x.new(x)
         return res
 
-    @staticmethod
     def backward(ctx, grad):
         return grad * ctx.scale, None