mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-20 11:00:23 +00:00
Format code (#1193)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
72a18e66b6
commit
a6456f6d46
@@ -3,7 +3,9 @@ from torch.types import Number
|
||||
|
||||
|
||||
@torch.no_grad()
|
||||
def amp_to_db(x: torch.Tensor, eps=torch.finfo(torch.float64).eps, top_db=40) -> torch.Tensor:
|
||||
def amp_to_db(
|
||||
x: torch.Tensor, eps=torch.finfo(torch.float64).eps, top_db=40
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
Convert the input tensor from amplitude to decibel scale.
|
||||
|
||||
@@ -40,7 +42,9 @@ def temperature_sigmoid(x: torch.Tensor, x0: float, temp_coeff: float) -> torch.
|
||||
|
||||
|
||||
@torch.no_grad()
|
||||
def linspace(start: Number, stop: Number, num: int = 50, endpoint: bool = True, **kwargs) -> torch.Tensor:
|
||||
def linspace(
|
||||
start: Number, stop: Number, num: int = 50, endpoint: bool = True, **kwargs
|
||||
) -> torch.Tensor:
|
||||
"""
|
||||
Generate a linearly spaced 1-D tensor.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user