Plana-Archive commited on
Commit
d6e0c2b
·
verified ·
1 Parent(s): 06c3f90

Clean up previous raw files

Browse files
Zero-CPU/monotonic_align/__init__.py DELETED
@@ -1,16 +0,0 @@
1
- from numpy import zeros, int32, float32
2
- from torch import from_numpy
3
-
4
- from .core import maximum_path_jit
5
-
6
-
7
- def maximum_path(neg_cent, mask):
8
- device = neg_cent.device
9
- dtype = neg_cent.dtype
10
- neg_cent = neg_cent.data.cpu().numpy().astype(float32)
11
- path = zeros(neg_cent.shape, dtype=int32)
12
-
13
- t_t_max = mask.sum(1)[:, 0].data.cpu().numpy().astype(int32)
14
- t_s_max = mask.sum(2)[:, 0].data.cpu().numpy().astype(int32)
15
- maximum_path_jit(path, neg_cent, t_t_max, t_s_max)
16
- return from_numpy(path).to(device=device, dtype=dtype)