Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python API restructurization & code style improvements (#130)
* Replace tabs with 4 spaces * Refactor tests * Rename Python scripts directory to "python" * Create a separate package for the official Python API * Move Python inference example to a separate file * Add missing const * Refactor extras * Split rwkv.cpp into smaller files * Clean up cpp code * Rename rwkv package to rwkv_cpp * Add missing type hints * Rewrite automatic library lookup * Add compatibility warning * Fix MacOS build * Fix MacOS build
- Loading branch information
1 parent
8db73b1
commit 6caa45e
Showing
48 changed files
with
1,964 additions
and
1,879 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,7 +1,9 @@ | ||
#include "rwkv.h" | ||
|
||
#include <stdio.h> | ||
|
||
int main() { | ||
#include <rwkv.h> | ||
|
||
int main(void) { | ||
printf("%s", rwkv_get_system_info_string()); | ||
|
||
return 0; | ||
} |
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
File renamed without changes.
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
Oops, something went wrong.