return tensor

This commit is contained in:
shahules786 2022-10-12 10:32:31 +05:30
parent 551ee4436f
commit 89ab58c5df
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class Pesq:
return self.pesq(prediction, target) return self.pesq(prediction, target)
except Exception as e: except Exception as e:
logging.warning(f"{e} error occured while calculating PESQ") logging.warning(f"{e} error occured while calculating PESQ")
return 0.0 return torch.tensor(0.0)
class LossWrapper(nn.Module): class LossWrapper(nn.Module):