Skip to content

Commit

Permalink
Merge pull request #352 from facebookresearch/fix_linter
Browse files Browse the repository at this point in the history
Fix linter in CI + set PyTorch version
  • Loading branch information
JadeCopet authored Nov 21, 2023
2 parents 1c570cd + d7e4acc commit aaead2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions audiocraft/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def _load_one(self, index: int):
if isinstance(part[0], torch.Tensor):
out.append(torch.stack(part))
else:
assert isinstance(part, torch.Tensor)
out.append(part)
return out
except Exception:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ num2words
numpy
sentencepiece
spacy==3.5.2
torch>=2.0.0
torch==2.1.0
torchaudio>=2.0.0
huggingface_hub
tqdm
Expand All @@ -20,4 +20,4 @@ librosa
gradio
torchmetrics
encodec
protobuf
protobuf

0 comments on commit aaead2d

Please sign in to comment.