mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-13 12:02:21 +00:00
updated
This commit is contained in:
parent
88880d3bf8
commit
da919baec3
@ -1,7 +1,7 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import torch
|
import torch
|
||||||
|
|
||||||
from matcha.utils.monotonic_align.core import maximum_path_c
|
from .core import maximum_path_c
|
||||||
|
|
||||||
|
|
||||||
def maximum_path(value, mask):
|
def maximum_path(value, mask):
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
# from distutils.core import setup
|
# Copied from
|
||||||
# from Cython.Build import cythonize
|
# https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/monotonic_align/setup.py
|
||||||
# import numpy
|
from distutils.core import setup
|
||||||
|
|
||||||
# setup(name='monotonic_align',
|
import numpy
|
||||||
# ext_modules=cythonize("core.pyx"),
|
from Cython.Build import cythonize
|
||||||
# include_dirs=[numpy.get_include()])
|
|
||||||
|
setup(
|
||||||
|
name="monotonic_align",
|
||||||
|
ext_modules=cythonize("core.pyx"),
|
||||||
|
include_dirs=[numpy.get_include()],
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user