fairseq/models/wav2vec.py
Killed 12 out of 107 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 2452
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -20,7 +20,7 @@
)
from fairseq.utils import buffered_arange
-logger = logging.getLogger(__name__)
+logger = None
@register_model("wav2vec")
Mutant 2455
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -25,7 +25,7 @@
@register_model("wav2vec")
class Wav2VecModel(BaseFairseqModel):
- @staticmethod
+
def add_args(parser):
"""Add model-specific arguments to the parser."""
parser.add_argument(
Mutant 2456
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -29,7 +29,7 @@
def add_args(parser):
"""Add model-specific arguments to the parser."""
parser.add_argument(
- "--prediction-steps",
+ "XX--prediction-stepsXX",
type=int,
metavar="N",
help="number of steps ahead to predict",
Mutant 2457
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -31,7 +31,7 @@
parser.add_argument(
"--prediction-steps",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="number of steps ahead to predict",
)
parser.add_argument(
Mutant 2458
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -32,7 +32,7 @@
"--prediction-steps",
type=int,
metavar="N",
- help="number of steps ahead to predict",
+ help="XXnumber of steps ahead to predictXX",
)
parser.add_argument(
"--sample-distance",
Mutant 2459
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -35,7 +35,7 @@
help="number of steps ahead to predict",
)
parser.add_argument(
- "--sample-distance",
+ "XX--sample-distanceXX",
type=int,
metavar="N",
help="sample distance from target. does not work properly with cross-sampling",
Mutant 2460
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -37,7 +37,7 @@
parser.add_argument(
"--sample-distance",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="sample distance from target. does not work properly with cross-sampling",
)
parser.add_argument(
Mutant 2461
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -38,7 +38,7 @@
"--sample-distance",
type=int,
metavar="N",
- help="sample distance from target. does not work properly with cross-sampling",
+ help="XXsample distance from target. does not work properly with cross-samplingXX",
)
parser.add_argument(
"--cross-sample-negatives",
Mutant 2462
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -41,7 +41,7 @@
help="sample distance from target. does not work properly with cross-sampling",
)
parser.add_argument(
- "--cross-sample-negatives",
+ "XX--cross-sample-negativesXX",
type=int,
metavar="N",
help="num of cross sampled negatives",
Mutant 2463
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -43,7 +43,7 @@
parser.add_argument(
"--cross-sample-negatives",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="num of cross sampled negatives",
)
parser.add_argument(
Mutant 2464
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -44,7 +44,7 @@
"--cross-sample-negatives",
type=int,
metavar="N",
- help="num of cross sampled negatives",
+ help="XXnum of cross sampled negativesXX",
)
parser.add_argument(
"--num-negatives", type=int, metavar="N", help="number of negative examples"
Mutant 2465
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -47,7 +47,7 @@
help="num of cross sampled negatives",
)
parser.add_argument(
- "--num-negatives", type=int, metavar="N", help="number of negative examples"
+ "XX--num-negativesXX", type=int, metavar="N", help="number of negative examples"
)
parser.add_argument(
"--conv-feature-layers",
Mutant 2466
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -47,7 +47,7 @@
help="num of cross sampled negatives",
)
parser.add_argument(
- "--num-negatives", type=int, metavar="N", help="number of negative examples"
+ "--num-negatives", type=int, metavar="XXNXX", help="number of negative examples"
)
parser.add_argument(
"--conv-feature-layers",
Mutant 2467
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -47,7 +47,7 @@
help="num of cross sampled negatives",
)
parser.add_argument(
- "--num-negatives", type=int, metavar="N", help="number of negative examples"
+ "--num-negatives", type=int, metavar="N", help="XXnumber of negative examplesXX"
)
parser.add_argument(
"--conv-feature-layers",
Mutant 2468
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -50,7 +50,7 @@
"--num-negatives", type=int, metavar="N", help="number of negative examples"
)
parser.add_argument(
- "--conv-feature-layers",
+ "XX--conv-feature-layersXX",
type=str,
metavar="EXPR",
help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
Mutant 2469
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -52,7 +52,7 @@
parser.add_argument(
"--conv-feature-layers",
type=str,
- metavar="EXPR",
+ metavar="XXEXPRXX",
help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
)
parser.add_argument(
Mutant 2470
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -53,7 +53,7 @@
"--conv-feature-layers",
type=str,
metavar="EXPR",
- help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
+ help="XXconvolutional feature extraction layers [(dim, kernel_size, stride), ...]XX",
)
parser.add_argument(
"--conv-aggregator-layers",
Mutant 2471
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -56,7 +56,7 @@
help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
)
parser.add_argument(
- "--conv-aggregator-layers",
+ "XX--conv-aggregator-layersXX",
type=str,
metavar="EXPR",
help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
Mutant 2472
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -58,7 +58,7 @@
parser.add_argument(
"--conv-aggregator-layers",
type=str,
- metavar="EXPR",
+ metavar="XXEXPRXX",
help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
)
parser.add_argument(
Mutant 2473
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -59,7 +59,7 @@
"--conv-aggregator-layers",
type=str,
metavar="EXPR",
- help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
+ help="XXconvolutional feature extraction layers [(dim, kernel_size, stride), ...]XX",
)
parser.add_argument(
"--dropout",
Mutant 2474
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -62,7 +62,7 @@
help="convolutional feature extraction layers [(dim, kernel_size, stride), ...]",
)
parser.add_argument(
- "--dropout",
+ "XX--dropoutXX",
type=float,
metavar="D",
help="dropout to apply within the model",
Mutant 2475
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -64,7 +64,7 @@
parser.add_argument(
"--dropout",
type=float,
- metavar="D",
+ metavar="XXDXX",
help="dropout to apply within the model",
)
parser.add_argument(
Mutant 2476
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -65,7 +65,7 @@
"--dropout",
type=float,
metavar="D",
- help="dropout to apply within the model",
+ help="XXdropout to apply within the modelXX",
)
parser.add_argument(
"--dropout-features",
Mutant 2477
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -68,7 +68,7 @@
help="dropout to apply within the model",
)
parser.add_argument(
- "--dropout-features",
+ "XX--dropout-featuresXX",
type=float,
metavar="D",
help="dropout to apply to the features",
Mutant 2478
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -70,7 +70,7 @@
parser.add_argument(
"--dropout-features",
type=float,
- metavar="D",
+ metavar="XXDXX",
help="dropout to apply to the features",
)
parser.add_argument(
Mutant 2479
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -71,7 +71,7 @@
"--dropout-features",
type=float,
metavar="D",
- help="dropout to apply to the features",
+ help="XXdropout to apply to the featuresXX",
)
parser.add_argument(
"--dropout-agg",
Mutant 2480
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -74,7 +74,7 @@
help="dropout to apply to the features",
)
parser.add_argument(
- "--dropout-agg",
+ "XX--dropout-aggXX",
type=float,
metavar="D",
help="dropout to apply after aggregation step",
Mutant 2481
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -76,7 +76,7 @@
parser.add_argument(
"--dropout-agg",
type=float,
- metavar="D",
+ metavar="XXDXX",
help="dropout to apply after aggregation step",
)
parser.add_argument(
Mutant 2482
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -77,7 +77,7 @@
"--dropout-agg",
type=float,
metavar="D",
- help="dropout to apply after aggregation step",
+ help="XXdropout to apply after aggregation stepXX",
)
parser.add_argument(
"--encoder", type=str, choices=["cnn"], help="type of encoder to use"
Mutant 2483
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -80,7 +80,7 @@
help="dropout to apply after aggregation step",
)
parser.add_argument(
- "--encoder", type=str, choices=["cnn"], help="type of encoder to use"
+ "XX--encoderXX", type=str, choices=["cnn"], help="type of encoder to use"
)
parser.add_argument(
"--aggregator",
Mutant 2484
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -80,7 +80,7 @@
help="dropout to apply after aggregation step",
)
parser.add_argument(
- "--encoder", type=str, choices=["cnn"], help="type of encoder to use"
+ "--encoder", type=str, choices=["XXcnnXX"], help="type of encoder to use"
)
parser.add_argument(
"--aggregator",
Mutant 2485
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -80,7 +80,7 @@
help="dropout to apply after aggregation step",
)
parser.add_argument(
- "--encoder", type=str, choices=["cnn"], help="type of encoder to use"
+ "--encoder", type=str, choices=["cnn"], help="XXtype of encoder to useXX"
)
parser.add_argument(
"--aggregator",
Mutant 2486
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -83,7 +83,7 @@
"--encoder", type=str, choices=["cnn"], help="type of encoder to use"
)
parser.add_argument(
- "--aggregator",
+ "XX--aggregatorXX",
type=str,
choices=["cnn", "gru"],
help="type of aggregator to use",
Mutant 2487
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -85,7 +85,7 @@
parser.add_argument(
"--aggregator",
type=str,
- choices=["cnn", "gru"],
+ choices=["XXcnnXX", "gru"],
help="type of aggregator to use",
)
parser.add_argument(
Mutant 2488
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -85,7 +85,7 @@
parser.add_argument(
"--aggregator",
type=str,
- choices=["cnn", "gru"],
+ choices=["cnn", "XXgruXX"],
help="type of aggregator to use",
)
parser.add_argument(
Mutant 2489
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -86,7 +86,7 @@
"--aggregator",
type=str,
choices=["cnn", "gru"],
- help="type of aggregator to use",
+ help="XXtype of aggregator to useXX",
)
parser.add_argument(
"--gru-dim", type=int, metavar="N", help="GRU dimensionality"
Mutant 2490
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -89,7 +89,7 @@
help="type of aggregator to use",
)
parser.add_argument(
- "--gru-dim", type=int, metavar="N", help="GRU dimensionality"
+ "XX--gru-dimXX", type=int, metavar="N", help="GRU dimensionality"
)
parser.add_argument(
Mutant 2491
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -89,7 +89,7 @@
help="type of aggregator to use",
)
parser.add_argument(
- "--gru-dim", type=int, metavar="N", help="GRU dimensionality"
+ "--gru-dim", type=int, metavar="XXNXX", help="GRU dimensionality"
)
parser.add_argument(
Mutant 2492
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -89,7 +89,7 @@
help="type of aggregator to use",
)
parser.add_argument(
- "--gru-dim", type=int, metavar="N", help="GRU dimensionality"
+ "--gru-dim", type=int, metavar="N", help="XXGRU dimensionalityXX"
)
parser.add_argument(
Mutant 2493
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -93,7 +93,7 @@
)
parser.add_argument(
- "--no-conv-bias",
+ "XX--no-conv-biasXX",
action="store_true",
help="if set, does not learn bias for conv layers",
)
Mutant 2495
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -95,7 +95,7 @@
parser.add_argument(
"--no-conv-bias",
action="store_true",
- help="if set, does not learn bias for conv layers",
+ help="XXif set, does not learn bias for conv layersXX",
)
parser.add_argument(
"--agg-zero-pad",
Mutant 2496
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -98,7 +98,7 @@
help="if set, does not learn bias for conv layers",
)
parser.add_argument(
- "--agg-zero-pad",
+ "XX--agg-zero-padXX",
action="store_true",
help="if set, zero pads in aggregator instead of repl pad",
)
Mutant 2498
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -100,7 +100,7 @@
parser.add_argument(
"--agg-zero-pad",
action="store_true",
- help="if set, zero pads in aggregator instead of repl pad",
+ help="XXif set, zero pads in aggregator instead of repl padXX",
)
parser.add_argument(
Mutant 2499
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -104,7 +104,7 @@
)
parser.add_argument(
- "--skip-connections-feat",
+ "XX--skip-connections-featXX",
action="store_true",
help="if set, adds skip connections to the feature extractor",
)
Mutant 2501
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -106,7 +106,7 @@
parser.add_argument(
"--skip-connections-feat",
action="store_true",
- help="if set, adds skip connections to the feature extractor",
+ help="XXif set, adds skip connections to the feature extractorXX",
)
parser.add_argument(
"--skip-connections-agg",
Mutant 2502
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -109,7 +109,7 @@
help="if set, adds skip connections to the feature extractor",
)
parser.add_argument(
- "--skip-connections-agg",
+ "XX--skip-connections-aggXX",
action="store_true",
help="if set, adds skip connections to the aggregator",
)
Mutant 2504
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -111,7 +111,7 @@
parser.add_argument(
"--skip-connections-agg",
action="store_true",
- help="if set, adds skip connections to the aggregator",
+ help="XXif set, adds skip connections to the aggregatorXX",
)
parser.add_argument(
"--residual-scale",
Mutant 2505
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -114,7 +114,7 @@
help="if set, adds skip connections to the aggregator",
)
parser.add_argument(
- "--residual-scale",
+ "XX--residual-scaleXX",
type=float,
metavar="D",
help="scales residual by sqrt(value)",
Mutant 2506
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -116,7 +116,7 @@
parser.add_argument(
"--residual-scale",
type=float,
- metavar="D",
+ metavar="XXDXX",
help="scales residual by sqrt(value)",
)
Mutant 2507
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -117,7 +117,7 @@
"--residual-scale",
type=float,
metavar="D",
- help="scales residual by sqrt(value)",
+ help="XXscales residual by sqrt(value)XX",
)
parser.add_argument(
Mutant 2508
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -121,7 +121,7 @@
)
parser.add_argument(
- "--log-compression",
+ "XX--log-compressionXX",
action="store_true",
help="if set, adds a log compression to feature extractor",
)
Mutant 2510
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -123,7 +123,7 @@
parser.add_argument(
"--log-compression",
action="store_true",
- help="if set, adds a log compression to feature extractor",
+ help="XXif set, adds a log compression to feature extractorXX",
)
parser.add_argument(
Mutant 2511
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -127,7 +127,7 @@
)
parser.add_argument(
- "--balanced-classes",
+ "XX--balanced-classesXX",
action="store_true",
help="if set, loss is scaled to balance for number of negatives",
)
Mutant 2513
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -129,7 +129,7 @@
parser.add_argument(
"--balanced-classes",
action="store_true",
- help="if set, loss is scaled to balance for number of negatives",
+ help="XXif set, loss is scaled to balance for number of negativesXX",
)
parser.add_argument(
Mutant 2514
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -133,7 +133,7 @@
)
parser.add_argument(
- "--project-features",
+ "XX--project-featuresXX",
choices=["none", "same", "new"],
help="if not none, features are projected using the (same or new) aggregator",
)
Mutant 2515
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -134,7 +134,7 @@
parser.add_argument(
"--project-features",
- choices=["none", "same", "new"],
+ choices=["XXnoneXX", "same", "new"],
help="if not none, features are projected using the (same or new) aggregator",
)
Mutant 2516
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -134,7 +134,7 @@
parser.add_argument(
"--project-features",
- choices=["none", "same", "new"],
+ choices=["none", "XXsameXX", "new"],
help="if not none, features are projected using the (same or new) aggregator",
)
Mutant 2517
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -134,7 +134,7 @@
parser.add_argument(
"--project-features",
- choices=["none", "same", "new"],
+ choices=["none", "same", "XXnewXX"],
help="if not none, features are projected using the (same or new) aggregator",
)
Mutant 2518
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -135,7 +135,7 @@
parser.add_argument(
"--project-features",
choices=["none", "same", "new"],
- help="if not none, features are projected using the (same or new) aggregator",
+ help="XXif not none, features are projected using the (same or new) aggregatorXX",
)
parser.add_argument(
Mutant 2519
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -139,7 +139,7 @@
)
parser.add_argument(
- "--non-affine-group-norm",
+ "XX--non-affine-group-normXX",
action="store_true",
help="if set, group norm is not affine",
)
Mutant 2521
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -141,7 +141,7 @@
parser.add_argument(
"--non-affine-group-norm",
action="store_true",
- help="if set, group norm is not affine",
+ help="XXif set, group norm is not affineXX",
)
parser.add_argument(
Mutant 2522
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -145,7 +145,7 @@
)
parser.add_argument(
- "--offset",
+ "XX--offsetXX",
help="if set, introduces an offset from target to predictions. "
'if set to "auto", it is computed automatically from the receptive field',
)
Mutant 2523
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -146,7 +146,7 @@
parser.add_argument(
"--offset",
- help="if set, introduces an offset from target to predictions. "
+ help="XXif set, introduces an offset from target to predictions. XX"
'if set to "auto", it is computed automatically from the receptive field',
)
Mutant 2524
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -151,7 +151,7 @@
)
parser.add_argument(
- "--activation",
+ "XX--activationXX",
type=str,
choices=["relu", "gelu"],
help="which activation function to use",
Mutant 2525
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -153,7 +153,7 @@
parser.add_argument(
"--activation",
type=str,
- choices=["relu", "gelu"],
+ choices=["XXreluXX", "gelu"],
help="which activation function to use",
)
Mutant 2526
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -153,7 +153,7 @@
parser.add_argument(
"--activation",
type=str,
- choices=["relu", "gelu"],
+ choices=["relu", "XXgeluXX"],
help="which activation function to use",
)
Mutant 2527
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -154,7 +154,7 @@
"--activation",
type=str,
choices=["relu", "gelu"],
- help="which activation function to use",
+ help="XXwhich activation function to useXX",
)
parser.add_argument(
Mutant 2528
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -158,7 +158,7 @@
)
parser.add_argument(
- "--vq-type",
+ "XX--vq-typeXX",
type=str,
choices=["none", "gumbel", "kmeans"],
help="which type of quantizer to use",
Mutant 2529
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -160,7 +160,7 @@
parser.add_argument(
"--vq-type",
type=str,
- choices=["none", "gumbel", "kmeans"],
+ choices=["XXnoneXX", "gumbel", "kmeans"],
help="which type of quantizer to use",
)
parser.add_argument(
Mutant 2530
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -160,7 +160,7 @@
parser.add_argument(
"--vq-type",
type=str,
- choices=["none", "gumbel", "kmeans"],
+ choices=["none", "XXgumbelXX", "kmeans"],
help="which type of quantizer to use",
)
parser.add_argument(
Mutant 2531
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -160,7 +160,7 @@
parser.add_argument(
"--vq-type",
type=str,
- choices=["none", "gumbel", "kmeans"],
+ choices=["none", "gumbel", "XXkmeansXX"],
help="which type of quantizer to use",
)
parser.add_argument(
Mutant 2532
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -161,7 +161,7 @@
"--vq-type",
type=str,
choices=["none", "gumbel", "kmeans"],
- help="which type of quantizer to use",
+ help="XXwhich type of quantizer to useXX",
)
parser.add_argument(
"--vq-vars",
Mutant 2533
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -164,7 +164,7 @@
help="which type of quantizer to use",
)
parser.add_argument(
- "--vq-vars",
+ "XX--vq-varsXX",
type=int,
metavar="N",
help="if set, project to this many vector quantized variables per group",
Mutant 2534
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -166,7 +166,7 @@
parser.add_argument(
"--vq-vars",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="if set, project to this many vector quantized variables per group",
)
parser.add_argument(
Mutant 2535
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -167,7 +167,7 @@
"--vq-vars",
type=int,
metavar="N",
- help="if set, project to this many vector quantized variables per group",
+ help="XXif set, project to this many vector quantized variables per groupXX",
)
parser.add_argument(
"--vq-groups",
Mutant 2536
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -170,7 +170,7 @@
help="if set, project to this many vector quantized variables per group",
)
parser.add_argument(
- "--vq-groups",
+ "XX--vq-groupsXX",
type=int,
metavar="N",
help="number of groups of latent variables",
Mutant 2537
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -172,7 +172,7 @@
parser.add_argument(
"--vq-groups",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="number of groups of latent variables",
)
parser.add_argument(
Mutant 2538
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -173,7 +173,7 @@
"--vq-groups",
type=int,
metavar="N",
- help="number of groups of latent variables",
+ help="XXnumber of groups of latent variablesXX",
)
parser.add_argument(
"--vq-dim",
Mutant 2539
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -176,7 +176,7 @@
help="number of groups of latent variables",
)
parser.add_argument(
- "--vq-dim",
+ "XX--vq-dimXX",
type=int,
metavar="N",
help="uses this dimensionality for quantized vectors",
Mutant 2540
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -178,7 +178,7 @@
parser.add_argument(
"--vq-dim",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="uses this dimensionality for quantized vectors",
)
parser.add_argument(
Mutant 2541
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -179,7 +179,7 @@
"--vq-dim",
type=int,
metavar="N",
- help="uses this dimensionality for quantized vectors",
+ help="XXuses this dimensionality for quantized vectorsXX",
)
parser.add_argument(
"--vq-depth",
Mutant 2542
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -182,7 +182,7 @@
help="uses this dimensionality for quantized vectors",
)
parser.add_argument(
- "--vq-depth",
+ "XX--vq-depthXX",
type=int,
metavar="N",
help="number of layers for vq weight projection",
Mutant 2543
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -184,7 +184,7 @@
parser.add_argument(
"--vq-depth",
type=int,
- metavar="N",
+ metavar="XXNXX",
help="number of layers for vq weight projection",
)
parser.add_argument(
Mutant 2544
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -185,7 +185,7 @@
"--vq-depth",
type=int,
metavar="N",
- help="number of layers for vq weight projection",
+ help="XXnumber of layers for vq weight projectionXX",
)
parser.add_argument(
"--combine-groups",
Mutant 2545
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -188,7 +188,7 @@
help="number of layers for vq weight projection",
)
parser.add_argument(
- "--combine-groups",
+ "XX--combine-groupsXX",
action="store_true",
help="if set, variables are shared among groups",
)
Mutant 2547
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -190,7 +190,7 @@
parser.add_argument(
"--combine-groups",
action="store_true",
- help="if set, variables are shared among groups",
+ help="XXif set, variables are shared among groupsXX",
)
parser.add_argument(
"--vq-temp",
Mutant 2548
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -193,7 +193,7 @@
help="if set, variables are shared among groups",
)
parser.add_argument(
- "--vq-temp",
+ "XX--vq-tempXX",
type=str,
metavar="TEMP",
help="temperature for latent variable sampling with gumbel softmax. should be a tuple of 3 values (start, end, decay)",
Mutant 2549
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -195,7 +195,7 @@
parser.add_argument(
"--vq-temp",
type=str,
- metavar="TEMP",
+ metavar="XXTEMPXX",
help="temperature for latent variable sampling with gumbel softmax. should be a tuple of 3 values (start, end, decay)",
)
parser.add_argument(
Mutant 2550
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -196,7 +196,7 @@
"--vq-temp",
type=str,
metavar="TEMP",
- help="temperature for latent variable sampling with gumbel softmax. should be a tuple of 3 values (start, end, decay)",
+ help="XXtemperature for latent variable sampling with gumbel softmax. should be a tuple of 3 values (start, end, decay)XX",
)
parser.add_argument(
"--vq-gamma",
Mutant 2551
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -199,7 +199,7 @@
help="temperature for latent variable sampling with gumbel softmax. should be a tuple of 3 values (start, end, decay)",
)
parser.add_argument(
- "--vq-gamma",
+ "XX--vq-gammaXX",
type=float,
metavar="D",
help="gamma parameter for kmeans style vector quantization",
Mutant 2552
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -201,7 +201,7 @@
parser.add_argument(
"--vq-gamma",
type=float,
- metavar="D",
+ metavar="XXDXX",
help="gamma parameter for kmeans style vector quantization",
)
Mutant 2553
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -202,7 +202,7 @@
"--vq-gamma",
type=float,
metavar="D",
- help="gamma parameter for kmeans style vector quantization",
+ help="XXgamma parameter for kmeans style vector quantizationXX",
)
@classmethod
Mutant 2554
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -205,7 +205,6 @@
help="gamma parameter for kmeans style vector quantization",
)
- @classmethod
def build_model(cls, args, task):
"""Build a new model instance."""
Mutant 2555
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -412,7 +412,7 @@
x = x[self.deconstruct_idx]
return x.transpose(-2, -1)
-def norm_block(is_layer_norm, dim, affine=True):
+def norm_block(is_layer_norm, dim, affine=False):
if is_layer_norm:
mod = nn.Sequential(
TransposeLast(),
Mutant 2557
--- fairseq/models/wav2vec.py
+++ fairseq/models/wav2vec.py
@@ -691,7 +691,7 @@
return predictions, labels
-@register_model_architecture("wav2vec", "wav2vec")
+@register_model_architecture("wav2vec", "XXwav2vecXX")
def base_wav2vec_architecture(args):
conv_feature_layers = "[(512, 10, 5)]"
conv_feature_layers += " + [(512, 8, 4)]"