fairseq/models/wav2vec.py
Killed 12 out of 107 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 716
--- 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 719
--- 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 720
--- 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 721
--- 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 722
--- 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 723
--- 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 724
--- 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 725
--- 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 726
--- 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 727
--- 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 728
--- 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 729
--- 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 730
--- 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 731
--- 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 732
--- 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 733
--- 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 734
--- 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 735
--- 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 736
--- 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 737
--- 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 738
--- 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 739
--- 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 740
--- 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 741
--- 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 742
--- 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 743
--- 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 744
--- 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 745
--- 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 746
--- 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 747
--- 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 748
--- 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 749
--- 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 750
--- 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 751
--- 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 752
--- 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 753
--- 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 754
--- 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 755
--- 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 756
--- 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 757
--- 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 759
--- 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 760
--- 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 762
--- 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 763
--- 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 765
--- 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 766
--- 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 768
--- 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 769
--- 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 770
--- 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 771
--- 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 772
--- 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 774
--- 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 775
--- 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 777
--- 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 778
--- 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 779
--- 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 780
--- 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 781
--- 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 782
--- 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 783
--- 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 785
--- 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 786
--- 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 787
--- 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 788
--- 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 789
--- 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 790
--- 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 791
--- 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 792
--- 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 793
--- 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 794
--- 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 795
--- 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 796
--- 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 797
--- 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 798
--- 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 799
--- 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 800
--- 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 801
--- 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 802
--- 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 803
--- 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 804
--- 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 805
--- 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 806
--- 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 807
--- 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 808
--- 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 809
--- 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 811
--- 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 812
--- 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 813
--- 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 814
--- 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 815
--- 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 816
--- 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 817
--- 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 818
--- 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 819
--- 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 821
--- 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)]"