taichi.main
¶
Module Contents¶
Classes¶
Functions¶
|
Function decorator to benchmark a function runnign time. |
|
Class decorator to register methodss with @register into a set. |
|
Method decorator to register CLI commands. |
|
- taichi.main.timer(func)¶
Function decorator to benchmark a function runnign time.
- taichi.main.registerableCLI(cls)¶
Class decorator to register methodss with @register into a set.
- taichi.main.register(func)¶
Method decorator to register CLI commands.
- class taichi.main.TaichiMain(test_mode: bool = False)¶
- example(self, arguments: list = sys.argv[2:])¶
Run an example by name (or name.py)
- static changelog(arguments: list = sys.argv[2:])¶
Display changelog of current version
- static release(arguments: list = sys.argv[2:])¶
Make source code release
- gif(self, arguments: list = sys.argv[2:])¶
Convert mp4 file to gif in the same directory
- video_speed(self, arguments: list = sys.argv[2:])¶
Speed up video in the same directory
- video_crop(self, arguments: list = sys.argv[2:])¶
Crop video in the same directory
- video_scale(self, arguments: list = sys.argv[2:])¶
Scale video resolution in the same directory
- video(self, arguments: list = sys.argv[2:])¶
Make a video using *.png files in the current directory
- static doc(arguments: list = sys.argv[2:])¶
Build documentation
- static format(arguments: list = sys.argv[2:])¶
Reformat modified source files
- static format_all(arguments: list = sys.argv[2:])¶
Reformat all source files
- regression(self, arguments: list = sys.argv[2:])¶
Display benchmark regression test result
- baseline(self, arguments: list = sys.argv[2:])¶
Archive current benchmark result as baseline
- benchmark(self, arguments: list = sys.argv[2:])¶
Run Python tests in benchmark mode
- static test(self, arguments: list = sys.argv[2:])¶
- run(self, arguments: list = sys.argv[2:])¶
Run a single script
- debug(self, arguments: list = sys.argv[2:])¶
Debug a single script
- static diagnose(arguments: list = sys.argv[2:])¶
System diagnose information
- cc_compose(self, arguments: list = sys.argv[2:])¶
Compose C backend action record into a complete C file
- static repl(arguments: list = sys.argv[2:])¶
Start Taichi REPL / Python shell with ‘import taichi as ti’
- static lint(arguments: list = sys.argv[2:])¶
Run pylint checker for the Python codebase of Taichi
- taichi.main.main()¶