k2-fsa / k2

FSA/FST algorithms, differentiable, with PyTorch compatibility.
https://k2-fsa.github.io/k2
Apache License 2.0
1.08k stars 211 forks source link

Support torch 2.1.0 #1249

Closed csukuangfj closed 8 months ago

lifeiteng commented 9 months ago

@csukuangfj can you upload new version wheels at https://csukuangfj.github.io/k2/installation/pre-compiled-cpu-wheels-linux/index.html

lifeiteng commented 9 months ago
--- a/k2/torch/bin/CMakeLists.txt
+++ b/k2/torch/bin/CMakeLists.txt
@@ -15,7 +15,7 @@ if(NOT K2_WITH_CUDA)
   transform(OUTPUT_VARIABLE ctc_decode_srcs SRCS ${ctc_decode_srcs})
 endif()
 add_executable(ctc_decode ${ctc_decode_srcs})
-set_property(TARGET ctc_decode PROPERTY CXX_STANDARD 14)
+set_property(TARGET ctc_decode PROPERTY CXX_STANDARD 17)
 target_link_libraries(ctc_decode ${bin_dep_libs})

 #----------------------------------------
@@ -26,7 +26,7 @@ if(NOT K2_WITH_CUDA)
   transform(OUTPUT_VARIABLE hlg_decode_srcs SRCS ${hlg_decode_srcs})
 endif()
 add_executable(hlg_decode ${hlg_decode_srcs})
-set_property(TARGET hlg_decode PROPERTY CXX_STANDARD 14)
+set_property(TARGET hlg_decode PROPERTY CXX_STANDARD 17)
 target_link_libraries(hlg_decode ${bin_dep_libs})

...
csukuangfj commented 8 months ago

@csukuangfj can you upload new version wheels at https://csukuangfj.github.io/k2/installation/pre-compiled-cpu-wheels-linux/index.html

@lifeiteng

I have updated

to include pre-compiled k2 wheels for torch 2.1

Please recheck it.