Skip to content

Commit 5896156

Browse files
fix: test versioning
1 parent 384e517 commit 5896156

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include aligner_pytorch/__init__.pxd

aligner_pytorch/__init__.pxd

Whitespace-only changes.

aligner_pytorch/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .mas import mas
1+
from aligner_pytorch.mas import mas

aligner_pytorch/mas.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
from .mas_c import compute_mas_alignement
2-
import torch
3-
from torch import Tensor
4-
from typing import Optional
1+
from aligner_pytorch.mas_c import compute_mas_alignement
2+
import torch
3+
from torch import Tensor
4+
from typing import Optional
5+
56

67
def mas(x: Tensor, mask: Optional[Tensor] = None) -> Tensor:
7-
b, m, n, device = *x.shape, x.device
8-
9-
values = x.clone().to(dtype=torch.float32, device='cpu').numpy()
10-
paths = torch.zeros_like(x, dtype=torch.int32, device='cpu').numpy()
8+
b, m, n, device = *x.shape, x.device
9+
10+
values = x.clone().to(dtype=torch.float32, device="cpu").numpy()
11+
paths = torch.zeros_like(x, dtype=torch.int32, device="cpu").numpy()
1112

1213
ms = torch.tensor([m], dtype=torch.int32).repeat(b).numpy()
1314
ns = torch.tensor([n], dtype=torch.int32).repeat(b).numpy()
1415

1516
compute_mas_alignement(paths, values, ms, ns)
16-
17+
1718
return torch.from_numpy(paths).to(device=device)

dist/aligner-pytorch-0.0.2.tar.gz

-104 KB
Binary file not shown.

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
setup(
99
name="aligner-pytorch",
10-
packages=find_packages(exclude=[]),
11-
version="0.0.2",
10+
version="0.0.14",
11+
packages=find_packages(),
1212
license="MIT",
1313
description="Aligner - PyTorch",
1414
long_description=long_description,
@@ -18,14 +18,14 @@
1818
url="https://github.com/archinetai/audio-diffusion-pytorch",
1919
keywords=["artificial intelligence", "deep learning", "TTS", "alignment"],
2020
install_requires=[
21-
"numpy",
2221
"torch>=1.6",
2322
"data-science-types>=0.2",
2423
"einops>=0.4",
2524
"einops-exts>=0.0.3",
2625
],
27-
include_dirs=["."],
28-
ext_modules=cythonize(["aligner_pytorch/*.pyx"]),
26+
setup_requires=["cython"],
27+
include_dirs=["aligner_pytorch"],
28+
ext_modules=cythonize(["aligner_pytorch/mas_c.pyx"]),
2929
classifiers=[
3030
"Development Status :: 4 - Beta",
3131
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)