@ -1,14 +1,14 @@
/* Generated by Cython 0.29.3 2 */
/* Generated by Cython 0.29.3 3 */
/* BEGIN: Cython Metadata
{
" distutils " : {
" name " : " larynx _train.vits.monotonic_align.core" ,
" name " : " piper _train.vits.monotonic_align.core" ,
" sources " : [
" /home/hansenm/opt/larynx2/src/python/ larynx _train/vits/monotonic_align/core.pyx"
" /home/hansenm/opt/larynx2/src/python/ piper _train/vits/monotonic_align/core.pyx"
]
} ,
" module_name " : " larynx _train.vits.monotonic_align.core"
" module_name " : " piper _train.vits.monotonic_align.core"
}
END : Cython Metadata */
@ -21,8 +21,8 @@ END: Cython Metadata */
# elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
# error Cython requires Python 2.6+ or Python 3.3+.
# else
# define CYTHON_ABI "0_29_3 2 "
# define CYTHON_HEX_VERSION 0x001D2 0 F0
# define CYTHON_ABI "0_29_3 3 "
# define CYTHON_HEX_VERSION 0x001D2 1 F0
# define CYTHON_FUTURE_DIVISION 0
# include <stddef.h>
# ifndef offsetof
@ -99,7 +99,7 @@ END: Cython Metadata */
# undef CYTHON_USE_EXC_INFO_STACK
# define CYTHON_USE_EXC_INFO_STACK 0
# ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
# define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_HEX >= 0x07030900)
# define CYTHON_UPDATE_DESCRIPTOR_DOC 0
# endif
# elif defined(PYSTON_VERSION)
# define CYTHON_COMPILING_IN_PYPY 0
@ -564,11 +564,11 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
# endif
# if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
# define CYTHON_PEP393_ENABLED 1
# if defined(PyUnicode_IS_READY)
# define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
0 : _PyUnicode_Ready ( ( PyObject * ) ( op ) ) )
# if PY_VERSION_HEX >= 0x030C0000
# define __Pyx_PyUnicode_READY(op) (0)
# else
# define __Pyx_PyUnicode_READY(op) (0)
# define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
0 : _PyUnicode_Ready ( ( PyObject * ) ( op ) ) )
# endif
# define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
# define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
@ -577,14 +577,14 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
# define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
# define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
# define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
# if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
# if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
# define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
# else
# define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
# endif
# if PY_VERSION_HEX >= 0x030C0000
# define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
# else
# define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
# if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
# define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
# else
# define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
# endif
# endif
# else
# define CYTHON_PEP393_ENABLED 0
@ -750,8 +750,8 @@ static CYTHON_INLINE float __PYX_NAN() {
# endif
# endif
# define __PYX_HAVE__ larynx _train__vits__monotonic_align__core
# define __PYX_HAVE_API__ larynx _train__vits__monotonic_align__core
# define __PYX_HAVE__ piper _train__vits__monotonic_align__core
# define __PYX_HAVE_API__ piper _train__vits__monotonic_align__core
/* Early includes */
# include "pythread.h"
# include <string.h>
@ -1080,16 +1080,16 @@ struct __pyx_array_obj;
struct __pyx_MemviewEnum_obj ;
struct __pyx_memoryview_obj ;
struct __pyx_memoryviewslice_obj ;
struct __pyx_opt_args_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each;
struct __pyx_opt_args_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each;
/* " larynx _train/vits/monotonic_align/core.pyx":7
/* " piper _train/vits/monotonic_align/core.pyx":7
* @ cython . boundscheck ( False )
* @ cython . wraparound ( False )
* cdef void maximum_path_each ( int [ : , : : 1 ] path , float [ : , : : 1 ] value , int t_y , int t_x , float max_neg_val = - 1e9 ) nogil : # < < < < < < < < < < < < < <
* cdef int x
* cdef int y
*/
struct __pyx_opt_args_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each {
struct __pyx_opt_args_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each {
int __pyx_n ;
float max_neg_val ;
} ;
@ -1551,18 +1551,18 @@ static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UIN
/* GetModuleGlobalName.proto */
# if CYTHON_USE_DICT_VERSIONS
# define __Pyx_GetModuleGlobalName(var, name) {\
# define __Pyx_GetModuleGlobalName(var, name) do {\
static PY_UINT64_T __pyx_dict_version = 0 ; \
static PyObject * __pyx_dict_cached_value = NULL ; \
( var ) = ( likely ( __pyx_dict_version = = __PYX_GET_DICT_VERSION ( __pyx_d ) ) ) ? \
( likely ( __pyx_dict_cached_value ) ? __Pyx_NewRef ( __pyx_dict_cached_value ) : __Pyx_GetBuiltinName ( name ) ) : \
__Pyx__GetModuleGlobalName ( name , & __pyx_dict_version , & __pyx_dict_cached_value ) ; \
}
# define __Pyx_GetModuleGlobalNameUncached(var, name) {\
} while ( 0 )
# define __Pyx_GetModuleGlobalNameUncached(var, name) do {\
PY_UINT64_T __pyx_dict_version ; \
PyObject * __pyx_dict_cached_value ; \
( var ) = __Pyx__GetModuleGlobalName ( name , & __pyx_dict_version , & __pyx_dict_cached_value ) ; \
}
} while ( 0 )
static PyObject * __Pyx__GetModuleGlobalName ( PyObject * name , PY_UINT64_T * dict_version , PyObject * * dict_cached_value ) ;
# else
# define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
@ -1864,7 +1864,7 @@ static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memo
/* Module declarations from 'cython' */
/* Module declarations from ' larynx _train.vits.monotonic_align.core' */
/* Module declarations from ' piper _train.vits.monotonic_align.core' */
static PyTypeObject * __pyx_array_type = 0 ;
static PyTypeObject * __pyx_MemviewEnum_type = 0 ;
static PyTypeObject * __pyx_memoryview_type = 0 ;
@ -1876,8 +1876,8 @@ static PyObject *contiguous = 0;
static PyObject * indirect_contiguous = 0 ;
static int __pyx_memoryview_thread_locks_used ;
static PyThread_type_lock __pyx_memoryview_thread_locks [ 8 ] ;
static void __pyx_f_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each( __Pyx_memviewslice , __Pyx_memviewslice , int , int , struct __pyx_opt_args_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each * __pyx_optional_args ) ; /*proto*/
static void __pyx_f_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_c( __Pyx_memviewslice , __Pyx_memviewslice , __Pyx_memviewslice , __Pyx_memviewslice , int __pyx_skip_dispatch ) ; /*proto*/
static void __pyx_f_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each( __Pyx_memviewslice , __Pyx_memviewslice , int , int , struct __pyx_opt_args_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each * __pyx_optional_args ) ; /*proto*/
static void __pyx_f_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_c( __Pyx_memviewslice , __Pyx_memviewslice , __Pyx_memviewslice , __Pyx_memviewslice , int __pyx_skip_dispatch ) ; /*proto*/
static struct __pyx_array_obj * __pyx_array_new ( PyObject * , Py_ssize_t , char * , char * , char * ) ; /*proto*/
static void * __pyx_align_pointer ( void * , size_t ) ; /*proto*/
static PyObject * __pyx_memoryview_new ( PyObject * , int , int , __Pyx_TypeInfo * ) ; /*proto*/
@ -1913,11 +1913,11 @@ static void __pyx_memoryview__slice_assign_scalar(char *, Py_ssize_t *, Py_ssize
static PyObject * __pyx_unpickle_Enum__set_state ( struct __pyx_MemviewEnum_obj * , PyObject * ) ; /*proto*/
static __Pyx_TypeInfo __Pyx_TypeInfo_int = { " int " , NULL , sizeof ( int ) , { 0 } , 0 , IS_UNSIGNED ( int ) ? ' U ' : ' I ' , IS_UNSIGNED ( int ) , 0 } ;
static __Pyx_TypeInfo __Pyx_TypeInfo_float = { " float " , NULL , sizeof ( float ) , { 0 } , 0 , ' R ' , 0 , 0 } ;
# define __Pyx_MODULE_NAME " larynx _train.vits.monotonic_align.core"
extern int __pyx_module_is_main_ larynx _train__vits__monotonic_align__core;
int __pyx_module_is_main_ larynx _train__vits__monotonic_align__core = 0 ;
# define __Pyx_MODULE_NAME " piper _train.vits.monotonic_align.core"
extern int __pyx_module_is_main_ piper _train__vits__monotonic_align__core;
int __pyx_module_is_main_ piper _train__vits__monotonic_align__core = 0 ;
/* Implementation of ' larynx _train.vits.monotonic_align.core' */
/* Implementation of ' piper _train.vits.monotonic_align.core' */
static PyObject * __pyx_builtin_range ;
static PyObject * __pyx_builtin_ValueError ;
static PyObject * __pyx_builtin_MemoryError ;
@ -2104,7 +2104,7 @@ static PyObject *__pyx_kp_s_unable_to_allocate_shape_and_str;
static PyObject * __pyx_n_s_unpack ;
static PyObject * __pyx_n_s_update ;
static PyObject * __pyx_n_s_values ;
static PyObject * __pyx_pf_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_c( CYTHON_UNUSED PyObject * __pyx_self , __Pyx_memviewslice __pyx_v_paths , __Pyx_memviewslice __pyx_v_values , __Pyx_memviewslice __pyx_v_t_ys , __Pyx_memviewslice __pyx_v_t_xs ) ; /* proto */
static PyObject * __pyx_pf_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_c( CYTHON_UNUSED PyObject * __pyx_self , __Pyx_memviewslice __pyx_v_paths , __Pyx_memviewslice __pyx_v_values , __Pyx_memviewslice __pyx_v_t_ys , __Pyx_memviewslice __pyx_v_t_xs ) ; /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__ ( struct __pyx_array_obj * __pyx_v_self , PyObject * __pyx_v_shape , Py_ssize_t __pyx_v_itemsize , PyObject * __pyx_v_format , PyObject * __pyx_v_mode , int __pyx_v_allocate_buffer ) ; /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__ ( struct __pyx_array_obj * __pyx_v_self , Py_buffer * __pyx_v_info , int __pyx_v_flags ) ; /* proto */
static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__ ( struct __pyx_array_obj * __pyx_v_self ) ; /* proto */
@ -2186,7 +2186,7 @@ static PyObject *__pyx_tuple__26;
static PyObject * __pyx_codeobj__27 ;
/* Late includes */
/* " larynx _train/vits/monotonic_align/core.pyx":7
/* " piper _train/vits/monotonic_align/core.pyx":7
* @ cython . boundscheck ( False )
* @ cython . wraparound ( False )
* cdef void maximum_path_each ( int [ : , : : 1 ] path , float [ : , : : 1 ] value , int t_y , int t_x , float max_neg_val = - 1e9 ) nogil : # < < < < < < < < < < < < < <
@ -2194,7 +2194,7 @@ static PyObject *__pyx_codeobj__27;
* cdef int y
*/
static void __pyx_f_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each( __Pyx_memviewslice __pyx_v_path , __Pyx_memviewslice __pyx_v_value , int __pyx_v_t_y , int __pyx_v_t_x , struct __pyx_opt_args_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each * __pyx_optional_args ) {
static void __pyx_f_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each( __Pyx_memviewslice __pyx_v_path , __Pyx_memviewslice __pyx_v_value , int __pyx_v_t_y , int __pyx_v_t_x , struct __pyx_opt_args_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each * __pyx_optional_args ) {
float __pyx_v_max_neg_val = __pyx_k_ ;
int __pyx_v_x ;
int __pyx_v_y ;
@ -2223,7 +2223,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
}
}
/* " larynx _train/vits/monotonic_align/core.pyx":13
/* " piper _train/vits/monotonic_align/core.pyx":13
* cdef float v_cur
* cdef float tmp
* cdef int index = t_x - 1 # < < < < < < < < < < < < < <
@ -2232,7 +2232,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
*/
__pyx_v_index = ( __pyx_v_t_x - 1 ) ;
/* " larynx _train/vits/monotonic_align/core.pyx":15
/* " piper _train/vits/monotonic_align/core.pyx":15
* cdef int index = t_x - 1
*
* for y in range ( t_y ) : # < < < < < < < < < < < < < <
@ -2244,7 +2244,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
for ( __pyx_t_3 = 0 ; __pyx_t_3 < __pyx_t_2 ; __pyx_t_3 + = 1 ) {
__pyx_v_y = __pyx_t_3 ;
/* " larynx _train/vits/monotonic_align/core.pyx":16
/* " piper _train/vits/monotonic_align/core.pyx":16
*
* for y in range ( t_y ) :
* for x in range ( max ( 0 , t_x + y - t_y ) , min ( t_x , y + 1 ) ) : # < < < < < < < < < < < < < <
@ -2270,7 +2270,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
for ( __pyx_t_5 = __pyx_t_7 ; __pyx_t_5 < __pyx_t_6 ; __pyx_t_5 + = 1 ) {
__pyx_v_x = __pyx_t_5 ;
/* " larynx _train/vits/monotonic_align/core.pyx":17
/* " piper _train/vits/monotonic_align/core.pyx":17
* for y in range ( t_y ) :
* for x in range ( max ( 0 , t_x + y - t_y ) , min ( t_x , y + 1 ) ) :
* if x = = y : # < < < < < < < < < < < < < <
@ -2280,7 +2280,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
__pyx_t_8 = ( ( __pyx_v_x = = __pyx_v_y ) ! = 0 ) ;
if ( __pyx_t_8 ) {
/* " larynx _train/vits/monotonic_align/core.pyx":18
/* " piper _train/vits/monotonic_align/core.pyx":18
* for x in range ( max ( 0 , t_x + y - t_y ) , min ( t_x , y + 1 ) ) :
* if x = = y :
* v_cur = max_neg_val # < < < < < < < < < < < < < <
@ -2289,7 +2289,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
*/
__pyx_v_v_cur = __pyx_v_max_neg_val ;
/* " larynx _train/vits/monotonic_align/core.pyx":17
/* " piper _train/vits/monotonic_align/core.pyx":17
* for y in range ( t_y ) :
* for x in range ( max ( 0 , t_x + y - t_y ) , min ( t_x , y + 1 ) ) :
* if x = = y : # < < < < < < < < < < < < < <
@ -2299,7 +2299,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
goto __pyx_L7 ;
}
/* " larynx _train/vits/monotonic_align/core.pyx":20
/* " piper _train/vits/monotonic_align/core.pyx":20
* v_cur = max_neg_val
* else :
* v_cur = value [ y - 1 , x ] # < < < < < < < < < < < < < <
@ -2313,7 +2313,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
}
__pyx_L7 : ;
/* " larynx _train/vits/monotonic_align/core.pyx":21
/* " piper _train/vits/monotonic_align/core.pyx":21
* else :
* v_cur = value [ y - 1 , x ]
* if x = = 0 : # < < < < < < < < < < < < < <
@ -2323,7 +2323,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
__pyx_t_8 = ( ( __pyx_v_x = = 0 ) ! = 0 ) ;
if ( __pyx_t_8 ) {
/* " larynx _train/vits/monotonic_align/core.pyx":22
/* " piper _train/vits/monotonic_align/core.pyx":22
* v_cur = value [ y - 1 , x ]
* if x = = 0 :
* if y = = 0 : # < < < < < < < < < < < < < <
@ -2333,7 +2333,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
__pyx_t_8 = ( ( __pyx_v_y = = 0 ) ! = 0 ) ;
if ( __pyx_t_8 ) {
/* " larynx _train/vits/monotonic_align/core.pyx":23
/* " piper _train/vits/monotonic_align/core.pyx":23
* if x = = 0 :
* if y = = 0 :
* v_prev = 0. # < < < < < < < < < < < < < <
@ -2342,7 +2342,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
*/
__pyx_v_v_prev = 0. ;
/* " larynx _train/vits/monotonic_align/core.pyx":22
/* " piper _train/vits/monotonic_align/core.pyx":22
* v_cur = value [ y - 1 , x ]
* if x = = 0 :
* if y = = 0 : # < < < < < < < < < < < < < <
@ -2352,7 +2352,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
goto __pyx_L9 ;
}
/* " larynx _train/vits/monotonic_align/core.pyx":25
/* " piper _train/vits/monotonic_align/core.pyx":25
* v_prev = 0.
* else :
* v_prev = max_neg_val # < < < < < < < < < < < < < <
@ -2364,7 +2364,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
}
__pyx_L9 : ;
/* " larynx _train/vits/monotonic_align/core.pyx":21
/* " piper _train/vits/monotonic_align/core.pyx":21
* else :
* v_cur = value [ y - 1 , x ]
* if x = = 0 : # < < < < < < < < < < < < < <
@ -2374,7 +2374,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
goto __pyx_L8 ;
}
/* " larynx _train/vits/monotonic_align/core.pyx":27
/* " piper _train/vits/monotonic_align/core.pyx":27
* v_prev = max_neg_val
* else :
* v_prev = value [ y - 1 , x - 1 ] # < < < < < < < < < < < < < <
@ -2388,7 +2388,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
}
__pyx_L8 : ;
/* " larynx _train/vits/monotonic_align/core.pyx":28
/* " piper _train/vits/monotonic_align/core.pyx":28
* else :
* v_prev = value [ y - 1 , x - 1 ]
* value [ y , x ] + = max ( v_prev , v_cur ) # < < < < < < < < < < < < < <
@ -2408,7 +2408,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
}
}
/* " larynx _train/vits/monotonic_align/core.pyx":30
/* " piper _train/vits/monotonic_align/core.pyx":30
* value [ y , x ] + = max ( v_prev , v_cur )
*
* for y in range ( t_y - 1 , - 1 , - 1 ) : # < < < < < < < < < < < < < <
@ -2418,7 +2418,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
for ( __pyx_t_1 = ( __pyx_v_t_y - 1 ) ; __pyx_t_1 > - 1 ; __pyx_t_1 - = 1 ) {
__pyx_v_y = __pyx_t_1 ;
/* " larynx _train/vits/monotonic_align/core.pyx":31
/* " piper _train/vits/monotonic_align/core.pyx":31
*
* for y in range ( t_y - 1 , - 1 , - 1 ) :
* path [ y , index ] = 1 # < < < < < < < < < < < < < <
@ -2429,7 +2429,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
__pyx_t_9 = __pyx_v_index ;
* ( ( int * ) ( /* dim=1 */ ( ( char * ) ( ( ( int * ) ( /* dim=0 */ ( __pyx_v_path . data + __pyx_t_10 * __pyx_v_path . strides [ 0 ] ) ) ) + __pyx_t_9 ) ) ) ) = 1 ;
/* " larynx _train/vits/monotonic_align/core.pyx":32
/* " piper _train/vits/monotonic_align/core.pyx":32
* for y in range ( t_y - 1 , - 1 , - 1 ) :
* path [ y , index ] = 1
* if index ! = 0 and ( index = = y or value [ y - 1 , index ] < value [ y - 1 , index - 1 ] ) : # < < < < < < < < < < < < < <
@ -2457,7 +2457,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
__pyx_L13_bool_binop_done : ;
if ( __pyx_t_8 ) {
/* " larynx _train/vits/monotonic_align/core.pyx":33
/* " piper _train/vits/monotonic_align/core.pyx":33
* path [ y , index ] = 1
* if index ! = 0 and ( index = = y or value [ y - 1 , index ] < value [ y - 1 , index - 1 ] ) :
* index = index - 1 # < < < < < < < < < < < < < <
@ -2466,7 +2466,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
*/
__pyx_v_index = ( __pyx_v_index - 1 ) ;
/* " larynx _train/vits/monotonic_align/core.pyx":32
/* " piper _train/vits/monotonic_align/core.pyx":32
* for y in range ( t_y - 1 , - 1 , - 1 ) :
* path [ y , index ] = 1
* if index ! = 0 and ( index = = y or value [ y - 1 , index ] < value [ y - 1 , index - 1 ] ) : # < < < < < < < < < < < < < <
@ -2476,7 +2476,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
}
}
/* " larynx _train/vits/monotonic_align/core.pyx":7
/* " piper _train/vits/monotonic_align/core.pyx":7
* @ cython . boundscheck ( False )
* @ cython . wraparound ( False )
* cdef void maximum_path_each ( int [ : , : : 1 ] path , float [ : , : : 1 ] value , int t_y , int t_x , float max_neg_val = - 1e9 ) nogil : # < < < < < < < < < < < < < <
@ -2487,7 +2487,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
/* function exit code */
}
/* " larynx _train/vits/monotonic_align/core.pyx":38
/* " piper _train/vits/monotonic_align/core.pyx":38
* @ cython . boundscheck ( False )
* @ cython . wraparound ( False )
* cpdef void maximum_path_c ( int [ : , : , : : 1 ] paths , float [ : , : , : : 1 ] values , int [ : : 1 ] t_ys , int [ : : 1 ] t_xs ) nogil : # < < < < < < < < < < < < < <
@ -2495,8 +2495,8 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_ea
* cdef int i
*/
static PyObject * __pyx_pw_1 2larynx _train_4vits_15monotonic_align_4core_1maximum_path_c( PyObject * __pyx_self , PyObject * __pyx_args , PyObject * __pyx_kwds ) ; /*proto*/
static void __pyx_f_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_c( __Pyx_memviewslice __pyx_v_paths , __Pyx_memviewslice __pyx_v_values , __Pyx_memviewslice __pyx_v_t_ys , __Pyx_memviewslice __pyx_v_t_xs , CYTHON_UNUSED int __pyx_skip_dispatch ) {
static PyObject * __pyx_pw_1 1piper _train_4vits_15monotonic_align_4core_1maximum_path_c( PyObject * __pyx_self , PyObject * __pyx_args , PyObject * __pyx_kwds ) ; /*proto*/
static void __pyx_f_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_c( __Pyx_memviewslice __pyx_v_paths , __Pyx_memviewslice __pyx_v_values , __Pyx_memviewslice __pyx_v_t_ys , __Pyx_memviewslice __pyx_v_t_xs , CYTHON_UNUSED int __pyx_skip_dispatch ) {
CYTHON_UNUSED int __pyx_v_b ;
int __pyx_v_i ;
int __pyx_t_1 ;
@ -2507,7 +2507,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_c(
Py_ssize_t __pyx_t_6 ;
Py_ssize_t __pyx_t_7 ;
/* " larynx _train/vits/monotonic_align/core.pyx":39
/* " piper _train/vits/monotonic_align/core.pyx":39
* @ cython . wraparound ( False )
* cpdef void maximum_path_c ( int [ : , : , : : 1 ] paths , float [ : , : , : : 1 ] values , int [ : : 1 ] t_ys , int [ : : 1 ] t_xs ) nogil :
* cdef int b = paths . shape [ 0 ] # < < < < < < < < < < < < < <
@ -2516,7 +2516,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_c(
*/
__pyx_v_b = ( __pyx_v_paths . shape [ 0 ] ) ;
/* " larynx _train/vits/monotonic_align/core.pyx":41
/* " piper _train/vits/monotonic_align/core.pyx":41
* cdef int b = paths . shape [ 0 ]
* cdef int i
* for i in prange ( b , nogil = True ) : # < < < < < < < < < < < < < <
@ -2552,7 +2552,7 @@ static void __pyx_f_12larynx_train_4vits_15monotonic_align_4core_maximum_path_c(
{
__pyx_v_i = ( int ) ( 0 + 1 * __pyx_t_2 ) ;
/* " larynx _train/vits/monotonic_align/core.pyx":42
/* " piper _train/vits/monotonic_align/core.pyx":42
* cdef int i
* for i in prange ( b , nogil = True ) :
* maximum_path_each ( paths [ i ] , values [ i ] , t_ys [ i ] , t_xs [ i ] ) # < < < < < < < < < < < < < <
@ -2593,7 +2593,7 @@ __pyx_t_5.strides[1] = __pyx_v_values.strides[2];
__pyx_t_6 = __pyx_v_i ;
__pyx_t_7 = __pyx_v_i ;
__pyx_f_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_each( __pyx_t_4 , __pyx_t_5 , ( * ( ( int * ) ( /* dim=0 */ ( ( char * ) ( ( ( int * ) __pyx_v_t_ys . data ) + __pyx_t_6 ) ) ) ) ) , ( * ( ( int * ) ( /* dim=0 */ ( ( char * ) ( ( ( int * ) __pyx_v_t_xs . data ) + __pyx_t_7 ) ) ) ) ) , NULL ) ;
__pyx_f_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_each( __pyx_t_4 , __pyx_t_5 , ( * ( ( int * ) ( /* dim=0 */ ( ( char * ) ( ( ( int * ) __pyx_v_t_ys . data ) + __pyx_t_6 ) ) ) ) ) , ( * ( ( int * ) ( /* dim=0 */ ( ( char * ) ( ( ( int * ) __pyx_v_t_xs . data ) + __pyx_t_7 ) ) ) ) ) , NULL ) ;
__PYX_XDEC_MEMVIEW ( & __pyx_t_4 , 0 ) ;
__pyx_t_4 . memview = NULL ;
__pyx_t_4 . data = NULL ;
@ -2613,7 +2613,7 @@ __pyx_t_6 = __pyx_v_i;
# endif
}
/* " larynx _train/vits/monotonic_align/core.pyx":41
/* " piper _train/vits/monotonic_align/core.pyx":41
* cdef int b = paths . shape [ 0 ]
* cdef int i
* for i in prange ( b , nogil = True ) : # < < < < < < < < < < < < < <
@ -2631,7 +2631,7 @@ __pyx_t_6 = __pyx_v_i;
}
}
/* " larynx _train/vits/monotonic_align/core.pyx":38
/* " piper _train/vits/monotonic_align/core.pyx":38
* @ cython . boundscheck ( False )
* @ cython . wraparound ( False )
* cpdef void maximum_path_c ( int [ : , : , : : 1 ] paths , float [ : , : , : : 1 ] values , int [ : : 1 ] t_ys , int [ : : 1 ] t_xs ) nogil : # < < < < < < < < < < < < < <
@ -2643,8 +2643,8 @@ __pyx_t_6 = __pyx_v_i;
}
/* Python wrapper */
static PyObject * __pyx_pw_1 2larynx _train_4vits_15monotonic_align_4core_1maximum_path_c( PyObject * __pyx_self , PyObject * __pyx_args , PyObject * __pyx_kwds ) ; /*proto*/
static PyObject * __pyx_pw_1 2larynx _train_4vits_15monotonic_align_4core_1maximum_path_c( PyObject * __pyx_self , PyObject * __pyx_args , PyObject * __pyx_kwds ) {
static PyObject * __pyx_pw_1 1piper _train_4vits_15monotonic_align_4core_1maximum_path_c( PyObject * __pyx_self , PyObject * __pyx_args , PyObject * __pyx_kwds ) ; /*proto*/
static PyObject * __pyx_pw_1 1piper _train_4vits_15monotonic_align_4core_1maximum_path_c( PyObject * __pyx_self , PyObject * __pyx_args , PyObject * __pyx_kwds ) {
__Pyx_memviewslice __pyx_v_paths = { 0 , 0 , { 0 } , { 0 } , { 0 } } ;
__Pyx_memviewslice __pyx_v_values = { 0 , 0 , { 0 } , { 0 } , { 0 } } ;
__Pyx_memviewslice __pyx_v_t_ys = { 0 , 0 , { 0 } , { 0 } , { 0 } } ;
@ -2717,18 +2717,18 @@ static PyObject *__pyx_pw_12larynx_train_4vits_15monotonic_align_4core_1maximum_
__pyx_L5_argtuple_error : ;
__Pyx_RaiseArgtupleInvalid ( " maximum_path_c " , 1 , 4 , 4 , PyTuple_GET_SIZE ( __pyx_args ) ) ; __PYX_ERR ( 0 , 38 , __pyx_L3_error )
__pyx_L3_error : ;
__Pyx_AddTraceback ( " larynx _train.vits.monotonic_align.core.maximum_path_c" , __pyx_clineno , __pyx_lineno , __pyx_filename ) ;
__Pyx_AddTraceback ( " piper _train.vits.monotonic_align.core.maximum_path_c" , __pyx_clineno , __pyx_lineno , __pyx_filename ) ;
__Pyx_RefNannyFinishContext ( ) ;
return NULL ;
__pyx_L4_argument_unpacking_done : ;
__pyx_r = __pyx_pf_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_c( __pyx_self , __pyx_v_paths , __pyx_v_values , __pyx_v_t_ys , __pyx_v_t_xs ) ;
__pyx_r = __pyx_pf_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_c( __pyx_self , __pyx_v_paths , __pyx_v_values , __pyx_v_t_ys , __pyx_v_t_xs ) ;
/* function exit code */
__Pyx_RefNannyFinishContext ( ) ;
return __pyx_r ;
}
static PyObject * __pyx_pf_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_c( CYTHON_UNUSED PyObject * __pyx_self , __Pyx_memviewslice __pyx_v_paths , __Pyx_memviewslice __pyx_v_values , __Pyx_memviewslice __pyx_v_t_ys , __Pyx_memviewslice __pyx_v_t_xs ) {
static PyObject * __pyx_pf_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_c( CYTHON_UNUSED PyObject * __pyx_self , __Pyx_memviewslice __pyx_v_paths , __Pyx_memviewslice __pyx_v_values , __Pyx_memviewslice __pyx_v_t_ys , __Pyx_memviewslice __pyx_v_t_xs ) {
PyObject * __pyx_r = NULL ;
__Pyx_RefNannyDeclarations
PyObject * __pyx_t_1 = NULL ;
@ -2741,7 +2741,7 @@ static PyObject *__pyx_pf_12larynx_train_4vits_15monotonic_align_4core_maximum_p
if ( unlikely ( ! __pyx_v_values . memview ) ) { __Pyx_RaiseUnboundLocalError ( " values " ) ; __PYX_ERR ( 0 , 38 , __pyx_L1_error ) }
if ( unlikely ( ! __pyx_v_t_ys . memview ) ) { __Pyx_RaiseUnboundLocalError ( " t_ys " ) ; __PYX_ERR ( 0 , 38 , __pyx_L1_error ) }
if ( unlikely ( ! __pyx_v_t_xs . memview ) ) { __Pyx_RaiseUnboundLocalError ( " t_xs " ) ; __PYX_ERR ( 0 , 38 , __pyx_L1_error ) }
__pyx_t_1 = __Pyx_void_to_None ( __pyx_f_1 2larynx _train_4vits_15monotonic_align_4core_maximum_path_c( __pyx_v_paths , __pyx_v_values , __pyx_v_t_ys , __pyx_v_t_xs , 0 ) ) ; if ( unlikely ( ! __pyx_t_1 ) ) __PYX_ERR ( 0 , 38 , __pyx_L1_error )
__pyx_t_1 = __Pyx_void_to_None ( __pyx_f_1 1piper _train_4vits_15monotonic_align_4core_maximum_path_c( __pyx_v_paths , __pyx_v_values , __pyx_v_t_ys , __pyx_v_t_xs , 0 ) ) ; if ( unlikely ( ! __pyx_t_1 ) ) __PYX_ERR ( 0 , 38 , __pyx_L1_error )
__Pyx_GOTREF ( __pyx_t_1 ) ;
__pyx_r = __pyx_t_1 ;
__pyx_t_1 = 0 ;
@ -2750,7 +2750,7 @@ static PyObject *__pyx_pf_12larynx_train_4vits_15monotonic_align_4core_maximum_p
/* function exit code */
__pyx_L1_error : ;
__Pyx_XDECREF ( __pyx_t_1 ) ;
__Pyx_AddTraceback ( " larynx _train.vits.monotonic_align.core.maximum_path_c" , __pyx_clineno , __pyx_lineno , __pyx_filename ) ;
__Pyx_AddTraceback ( " piper _train.vits.monotonic_align.core.maximum_path_c" , __pyx_clineno , __pyx_lineno , __pyx_filename ) ;
__pyx_r = NULL ;
__pyx_L0 : ;
__PYX_XDEC_MEMVIEW ( & __pyx_v_paths , 1 ) ;
@ -3066,7 +3066,7 @@ static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __
* self . format = self . _format
*
*/
if ( ! ( likely ( PyBytes_CheckExact ( __pyx_v_format ) ) | | ( ( __pyx_v_format ) = = Py_None ) | | ( PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " bytes " , Py_TYPE ( __pyx_v_format ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 141 , __pyx_L1_error )
if ( ! ( likely ( PyBytes_CheckExact ( __pyx_v_format ) ) | | ( ( __pyx_v_format ) = = Py_None ) | | ( ( void ) PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " bytes " , Py_TYPE ( __pyx_v_format ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 141 , __pyx_L1_error )
__pyx_t_3 = __pyx_v_format ;
__Pyx_INCREF ( __pyx_t_3 ) ;
__Pyx_GIVEREF ( __pyx_t_3 ) ;
@ -5044,7 +5044,7 @@ static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_Me
* def __setstate_cython__ ( self , __pyx_state ) :
* __pyx_unpickle_Enum__set_state ( self , __pyx_state ) # < < < < < < < < < < < < < <
*/
if ( ! ( likely ( PyTuple_CheckExact ( __pyx_v___pyx_state ) ) | | ( ( __pyx_v___pyx_state ) = = Py_None ) | | ( PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " tuple " , Py_TYPE ( __pyx_v___pyx_state ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 17 , __pyx_L1_error )
if ( ! ( likely ( PyTuple_CheckExact ( __pyx_v___pyx_state ) ) | | ( ( __pyx_v___pyx_state ) = = Py_None ) | | ( ( void ) PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " tuple " , Py_TYPE ( __pyx_v___pyx_state ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 17 , __pyx_L1_error )
__pyx_t_1 = __pyx_unpickle_Enum__set_state ( __pyx_v_self , ( ( PyObject * ) __pyx_v___pyx_state ) ) ; if ( unlikely ( ! __pyx_t_1 ) ) __PYX_ERR ( 1 , 17 , __pyx_L1_error )
__Pyx_GOTREF ( __pyx_t_1 ) ;
__Pyx_DECREF ( __pyx_t_1 ) ; __pyx_t_1 = 0 ;
@ -7347,7 +7347,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
__Pyx_GOTREF ( __pyx_t_4 ) ;
__Pyx_DECREF ( __pyx_t_1 ) ; __pyx_t_1 = 0 ;
__Pyx_DECREF ( __pyx_t_6 ) ; __pyx_t_6 = 0 ;
if ( ! ( likely ( PyBytes_CheckExact ( __pyx_t_4 ) ) | | ( ( __pyx_t_4 ) = = Py_None ) | | ( PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " bytes " , Py_TYPE ( __pyx_t_4 ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 512 , __pyx_L1_error )
if ( ! ( likely ( PyBytes_CheckExact ( __pyx_t_4 ) ) | | ( ( __pyx_t_4 ) = = Py_None ) | | ( ( void ) PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " bytes " , Py_TYPE ( __pyx_t_4 ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 512 , __pyx_L1_error )
__pyx_v_bytesvalue = ( ( PyObject * ) __pyx_t_4 ) ;
__pyx_t_4 = 0 ;
@ -7420,7 +7420,7 @@ static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryvie
__Pyx_DECREF ( __pyx_t_8 ) ; __pyx_t_8 = 0 ;
}
__Pyx_DECREF ( __pyx_t_6 ) ; __pyx_t_6 = 0 ;
if ( ! ( likely ( PyBytes_CheckExact ( __pyx_t_4 ) ) | | ( ( __pyx_t_4 ) = = Py_None ) | | ( PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " bytes " , Py_TYPE ( __pyx_t_4 ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 514 , __pyx_L1_error )
if ( ! ( likely ( PyBytes_CheckExact ( __pyx_t_4 ) ) | | ( ( __pyx_t_4 ) = = Py_None ) | | ( ( void ) PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " bytes " , Py_TYPE ( __pyx_t_4 ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 514 , __pyx_L1_error )
__pyx_v_bytesvalue = ( ( PyObject * ) __pyx_t_4 ) ;
__pyx_t_4 = 0 ;
}
@ -15623,7 +15623,7 @@ static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSE
* return __pyx_result
* cdef __pyx_unpickle_Enum__set_state ( Enum __pyx_result , tuple __pyx_state ) :
*/
if ( ! ( likely ( PyTuple_CheckExact ( __pyx_v___pyx_state ) ) | | ( ( __pyx_v___pyx_state ) = = Py_None ) | | ( PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " tuple " , Py_TYPE ( __pyx_v___pyx_state ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 9 , __pyx_L1_error )
if ( ! ( likely ( PyTuple_CheckExact ( __pyx_v___pyx_state ) ) | | ( ( __pyx_v___pyx_state ) = = Py_None ) | | ( ( void ) PyErr_Format ( PyExc_TypeError , " Expected %.16s, got %.200s " , " tuple " , Py_TYPE ( __pyx_v___pyx_state ) - > tp_name ) , 0 ) ) ) __PYX_ERR ( 1 , 9 , __pyx_L1_error )
__pyx_t_4 = __pyx_unpickle_Enum__set_state ( ( ( struct __pyx_MemviewEnum_obj * ) __pyx_v___pyx_result ) , ( ( PyObject * ) __pyx_v___pyx_state ) ) ; if ( unlikely ( ! __pyx_t_4 ) ) __PYX_ERR ( 1 , 9 , __pyx_L1_error )
__Pyx_GOTREF ( __pyx_t_4 ) ;
__Pyx_DECREF ( __pyx_t_4 ) ; __pyx_t_4 = 0 ;
@ -15925,7 +15925,7 @@ static PyBufferProcs __pyx_tp_as_buffer_array = {
static PyTypeObject __pyx_type___pyx_array = {
PyVarObject_HEAD_INIT ( 0 , 0 )
" larynx _train.vits.monotonic_align.core.array" , /*tp_name*/
" piper _train.vits.monotonic_align.core.array" , /*tp_name*/
sizeof ( struct __pyx_array_obj ) , /*tp_basicsize*/
0 , /*tp_itemsize*/
__pyx_tp_dealloc_array , /*tp_dealloc*/
@ -16047,7 +16047,7 @@ static PyMethodDef __pyx_methods_Enum[] = {
static PyTypeObject __pyx_type___pyx_MemviewEnum = {
PyVarObject_HEAD_INIT ( 0 , 0 )
" larynx _train.vits.monotonic_align.core.Enum" , /*tp_name*/
" piper _train.vits.monotonic_align.core.Enum" , /*tp_name*/
sizeof ( struct __pyx_MemviewEnum_obj ) , /*tp_basicsize*/
0 , /*tp_itemsize*/
__pyx_tp_dealloc_Enum , /*tp_dealloc*/
@ -16311,7 +16311,7 @@ static PyBufferProcs __pyx_tp_as_buffer_memoryview = {
static PyTypeObject __pyx_type___pyx_memoryview = {
PyVarObject_HEAD_INIT ( 0 , 0 )
" larynx _train.vits.monotonic_align.core.memoryview" , /*tp_name*/
" piper _train.vits.monotonic_align.core.memoryview" , /*tp_name*/
sizeof ( struct __pyx_memoryview_obj ) , /*tp_basicsize*/
0 , /*tp_itemsize*/
__pyx_tp_dealloc_memoryview , /*tp_dealloc*/
@ -16452,7 +16452,7 @@ static struct PyGetSetDef __pyx_getsets__memoryviewslice[] = {
static PyTypeObject __pyx_type___pyx_memoryviewslice = {
PyVarObject_HEAD_INIT ( 0 , 0 )
" larynx _train.vits.monotonic_align.core._memoryviewslice" , /*tp_name*/
" piper _train.vits.monotonic_align.core._memoryviewslice" , /*tp_name*/
sizeof ( struct __pyx_memoryviewslice_obj ) , /*tp_basicsize*/
0 , /*tp_itemsize*/
__pyx_tp_dealloc__memoryviewslice , /*tp_dealloc*/
@ -16531,7 +16531,7 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = {
} ;
static PyMethodDef __pyx_methods [ ] = {
{ " maximum_path_c " , ( PyCFunction ) ( void * ) ( PyCFunctionWithKeywords ) __pyx_pw_1 2larynx _train_4vits_15monotonic_align_4core_1maximum_path_c, METH_VARARGS | METH_KEYWORDS , 0 } ,
{ " maximum_path_c " , ( PyCFunction ) ( void * ) ( PyCFunctionWithKeywords ) __pyx_pw_1 1piper _train_4vits_15monotonic_align_4core_1maximum_path_c, METH_VARARGS | METH_KEYWORDS , 0 } ,
{ 0 , 0 , 0 , 0 }
} ;
@ -16961,7 +16961,7 @@ PyEval_InitThreads();
if ( unlikely ( PyErr_Occurred ( ) ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
if ( __Pyx_InitStrings ( __pyx_string_tab ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error ) ;
if ( __Pyx_InitStrings ( __pyx_string_tab ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
__pyx_int_0 = PyInt_FromLong ( 0 ) ; if ( unlikely ( ! __pyx_int_0 ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
__pyx_int_1 = PyInt_FromLong ( 1 ) ; if ( unlikely ( ! __pyx_int_1 ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
__pyx_int_112105877 = PyInt_FromLong ( 112105877L ) ; if ( unlikely ( ! __pyx_int_112105877 ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
@ -17266,20 +17266,20 @@ if (!__Pyx_RefNanny) {
Py_INCREF ( __pyx_b ) ;
__pyx_cython_runtime = PyImport_AddModule ( ( char * ) " cython_runtime " ) ; if ( unlikely ( ! __pyx_cython_runtime ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
Py_INCREF ( __pyx_cython_runtime ) ;
if ( PyObject_SetAttrString ( __pyx_m , " __builtins__ " , __pyx_b ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error ) ;
if ( PyObject_SetAttrString ( __pyx_m , " __builtins__ " , __pyx_b ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
/*--- Initialize various global constants etc. ---*/
if ( __Pyx_InitGlobals ( ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
# if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
if ( __Pyx_init_sys_getdefaultencoding_params ( ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
# endif
if ( __pyx_module_is_main_ larynx _train__vits__monotonic_align__core) {
if ( __pyx_module_is_main_ piper _train__vits__monotonic_align__core) {
if ( PyObject_SetAttr ( __pyx_m , __pyx_n_s_name_2 , __pyx_n_s_main ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
}
# if PY_MAJOR_VERSION >= 3
{
PyObject * modules = PyImport_GetModuleDict ( ) ; if ( unlikely ( ! modules ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
if ( ! PyDict_GetItemString ( modules , " larynx _train.vits.monotonic_align.core" ) ) {
if ( unlikely ( PyDict_SetItemString ( modules , " larynx _train.vits.monotonic_align.core" , __pyx_m ) < 0 ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
if ( ! PyDict_GetItemString ( modules , " piper _train.vits.monotonic_align.core" ) ) {
if ( unlikely ( PyDict_SetItemString ( modules , " piper _train.vits.monotonic_align.core" , __pyx_m ) < 0 ) ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
}
}
# endif
@ -17300,7 +17300,7 @@ if (!__Pyx_RefNanny) {
if ( __Pyx_patch_abc ( ) < 0 ) __PYX_ERR ( 0 , 1 , __pyx_L1_error )
# endif
/* " larynx _train/vits/monotonic_align/core.pyx":7
/* " piper _train/vits/monotonic_align/core.pyx":7
* @ cython . boundscheck ( False )
* @ cython . wraparound ( False )
* cdef void maximum_path_each ( int [ : , : : 1 ] path , float [ : , : : 1 ] value , int t_y , int t_x , float max_neg_val = - 1e9 ) nogil : # < < < < < < < < < < < < < <
@ -17309,7 +17309,7 @@ if (!__Pyx_RefNanny) {
*/
__pyx_k_ = ( - 1e9 ) ;
/* " larynx _train/vits/monotonic_align/core.pyx":1
/* " piper _train/vits/monotonic_align/core.pyx":1
* cimport cython # < < < < < < < < < < < < < <
* from cython . parallel import prange
*
@ -17479,11 +17479,11 @@ if (!__Pyx_RefNanny) {
__Pyx_XDECREF ( __pyx_t_1 ) ;
if ( __pyx_m ) {
if ( __pyx_d ) {
__Pyx_AddTraceback ( " init larynx _train.vits.monotonic_align.core" , __pyx_clineno , __pyx_lineno , __pyx_filename ) ;
__Pyx_AddTraceback ( " init piper _train.vits.monotonic_align.core" , __pyx_clineno , __pyx_lineno , __pyx_filename ) ;
}
Py_CLEAR ( __pyx_m ) ;
} else if ( ! PyErr_Occurred ( ) ) {
PyErr_SetString ( PyExc_ImportError , " init larynx _train.vits.monotonic_align.core" ) ;
PyErr_SetString ( PyExc_ImportError , " init piper _train.vits.monotonic_align.core" ) ;
}
__pyx_L0 : ;
__Pyx_RefNannyFinishContext ( ) ;
@ -18536,7 +18536,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
/* ObjectGetItem */
# if CYTHON_USE_TYPE_SLOTS
static PyObject * __Pyx_PyObject_GetIndex ( PyObject * obj , PyObject * index ) {
PyObject * runerr ;
PyObject * runerr = NULL ;
Py_ssize_t key_value ;
PySequenceMethods * m = Py_TYPE ( obj ) - > tp_as_sequence ;
if ( unlikely ( ! ( m & & m - > sq_item ) ) ) {
@ -19417,7 +19417,7 @@ __PYX_GOOD:
/* CLineInTraceback */
# ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback ( CYTHON_ NCP_ UNUSED PyThreadState * tstate , int c_line ) {
static int __Pyx_CLineForTraceback ( CYTHON_ UNUSED PyThreadState * tstate , int c_line ) {
PyObject * use_cline ;
PyObject * ptype , * pvalue , * ptraceback ;
# if CYTHON_COMPILING_IN_CPYTHON