Skip to content

Commit

Permalink
fix: return type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyolicoris committed Apr 19, 2024
1 parent 79c3a98 commit 8bf7bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchlpc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def lpc_cuda(x: torch.Tensor, A: torch.Tensor, zi: torch.Tensor) -> torch.Tensor


@njit(parallel=True)
def lpc_np(x: np.ndarray, A: np.ndarray, zi: np.ndarray) -> None:
def lpc_np(x: np.ndarray, A: np.ndarray, zi: np.ndarray) -> np.ndarray:
B, T = x.shape
order = zi.shape[1]
padded_y = np.empty((B, T + order), dtype=x.dtype)
Expand Down

0 comments on commit 8bf7bd5

Please sign in to comment.