-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrap k2::Fsa and k2::Arc to Python. (#54)
* wrap k2::Array1 to Python. * fix cpplint. * construct a k2::Fsa_ from a string in Python. * fix cpplint. * resolve some comments. * add python test cases for stride==3 * rebase. * wrap k2::Fsa and k2::Arc. * fix a typo.
- Loading branch information
1 parent
53e3317
commit d1754fb
Showing
20 changed files
with
396 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
add_subdirectory(csrc) | ||
add_subdirectory(tests) | ||
add_subdirectory(tutorials) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# sort the files alphabetically | ||
pybind11_add_module(k2 | ||
#fsa.cc | ||
fsa_renderer.cc | ||
# please sort the files alphabetically | ||
pybind11_add_module(_k2 | ||
fsa.cc | ||
fsa_util.cc | ||
k2.cc | ||
tensor.cc | ||
) | ||
|
||
target_include_directories(k2 PRIVATE ${CMAKE_SOURCE_DIR}) | ||
target_link_libraries(k2 PRIVATE fsa) | ||
target_include_directories(_k2 PRIVATE ${CMAKE_SOURCE_DIR}) | ||
target_link_libraries(_k2 PRIVATE fsa) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.