From 120d6aba0fdc0f68eb8ec2421afcbf9451263f36 Mon Sep 17 00:00:00 2001 From: Owen Song Date: Wed, 17 Jun 2026 23:54:33 +0000 Subject: [PATCH] Remove obsolete package file tiny_tts/alignment/__init__.py --- tiny_tts/alignment/__init__.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 tiny_tts/alignment/__init__.py diff --git a/tiny_tts/alignment/__init__.py b/tiny_tts/alignment/__init__.py deleted file mode 100644 index f13ba69..0000000 --- a/tiny_tts/alignment/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -from numpy import zeros, int32, float32 -from torch import from_numpy - -from .core import viterbi_decode_kernel - - -def viterbi_decode(neg_cent, mask): - device = neg_cent.device - dtype = neg_cent.dtype - neg_cent = neg_cent.data.cpu().numpy().astype(float32) - path = zeros(neg_cent.shape, dtype=int32) - - t_t_max = mask.sum(1)[:, 0].data.cpu().numpy().astype(int32) - t_s_max = mask.sum(2)[:, 0].data.cpu().numpy().astype(int32) - viterbi_decode_kernel(path, neg_cent, t_t_max, t_s_max) - return from_numpy(path).to(device=device, dtype=dtype)