fairseq/models/fairseq_decoder.py

Killed 0 out of 3 mutants

Survived

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

Mutant 2278

--- fairseq/models/fairseq_decoder.py
+++ fairseq/models/fairseq_decoder.py
@@ -15,7 +15,7 @@
 
     def __init__(self, dictionary):
         super().__init__()
-        self.dictionary = dictionary
+        self.dictionary = None
         self.onnx_trace = False
 
     def forward(self, prev_output_tokens, encoder_out=None, **kwargs):

Mutant 2279

--- fairseq/models/fairseq_decoder.py
+++ fairseq/models/fairseq_decoder.py
@@ -16,7 +16,7 @@
     def __init__(self, dictionary):
         super().__init__()
         self.dictionary = dictionary
-        self.onnx_trace = False
+        self.onnx_trace = True
 
     def forward(self, prev_output_tokens, encoder_out=None, **kwargs):
         """

Mutant 2280

--- fairseq/models/fairseq_decoder.py
+++ fairseq/models/fairseq_decoder.py
@@ -16,7 +16,7 @@
     def __init__(self, dictionary):
         super().__init__()
         self.dictionary = dictionary
-        self.onnx_trace = False
+        self.onnx_trace = None
 
     def forward(self, prev_output_tokens, encoder_out=None, **kwargs):
         """