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 recipes/CVSS/S2ST/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def compute_forward(self, batch, stage):
wav = self.test_vocoder.decode_unit(code.unsqueeze(-1))
wavs.append(wav.squeeze(0))
else:
logger.warn(
logger.warning(
f"Encountered hyp {hyp} too short for decoding, using fake blank audio for testing"
)
wavs.append(torch.zeros(40000)) # on cpu device
Expand Down
2 changes: 1 addition & 1 deletion speechbrain/k2_integration/lattice_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def get_lattice(
device = log_probs_nnet_output.device
input_lens = input_lens.to(device)
if decoder.device != device:
logger.warn(
logger.warning(
"Decoding graph (HL or HLG) not loaded on the same device"
" as nnet, this will cause decoding speed degradation"
)
Expand Down
2 changes: 1 addition & 1 deletion speechbrain/lobes/models/beats.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def get_activation_fn(activation: str):
elif activation == "gelu":
return gelu
elif activation == "gelu_fast":
logger.warn(
logger.warning(
"--activation-fn=gelu_fast has been renamed to gelu_accurate"
)
return gelu_accurate
Expand Down