2 Commits

Author SHA1 Message Date
dependabot[bot] b9498315db Bump transformers from 4.5.1 to 4.30.0
Bumps [transformers](https://github.com/huggingface/transformers) from 4.5.1 to 4.30.0.
- [Release notes](https://github.com/huggingface/transformers/releases)
- [Commits](https://github.com/huggingface/transformers/compare/v4.5.1...v4.30.0)

---
updated-dependencies:
- dependency-name: transformers
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 21:52:07 +00:00
Soham cf7b4288af call cuda function 2023-04-13 11:53:23 -07:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ torchaudio==0.8.1
torchlibrosa==0.0.9
torchvision==0.9.1+cu111
tqdm==4.60.0
transformers==4.5.1
transformers==4.30.0
typing-extensions==3.10.0.0
urllib3==1.26.5
importlib-resources==5.10.0
+1 -1
View File
@@ -149,7 +149,7 @@ class CLAPWrapper():
audio_tensor = self.load_audio_into_tensor(
audio_file, self.args.duration, resample)
audio_tensor = audio_tensor.reshape(
1, -1).cuda if self.use_cuda and torch.cuda.is_available() else audio_tensor.reshape(1, -1)
1, -1).cuda() if self.use_cuda and torch.cuda.is_available() else audio_tensor.reshape(1, -1)
audio_tensors.append(audio_tensor)
return self.default_collate(audio_tensors)