Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black

Expand Down
1 change: 0 additions & 1 deletion fairseq/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
FairseqMultiModel,
)


MODEL_REGISTRY = {}
MODEL_DATACLASS_REGISTRY = {}
ARCH_MODEL_REGISTRY = {}
Expand Down
2 changes: 1 addition & 1 deletion fairseq/models/wav2vec/wav2vec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def make_conv():
self.conv_layers = nn.ModuleList()
for i, cl in enumerate(conv_layers):
assert len(cl) == 3, "invalid conv definition: " + str(cl)
(dim, k, stride) = cl
dim, k, stride = cl

self.conv_layers.append(
block(
Expand Down
2 changes: 1 addition & 1 deletion fairseq/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def step(
final_scores = torch.empty(0).to(lprobs)
final_indices = torch.LongTensor().to(device=lprobs.device)
final_beams = torch.LongTensor().to(device=lprobs.device)
(final_scores, final_indices) = torch.topk(
final_scores, final_indices = torch.topk(
torch.stack(s_list, dim=1).view(bsz, -1),
k,
)
Expand Down
1 change: 0 additions & 1 deletion fairseq/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from .fairseq_task import FairseqTask # noqa


# register dataclass
TASK_DATACLASS_REGISTRY = {}
TASK_REGISTRY = {}
Expand Down