[Vision] fix find_contours_op bug (#274) Update find_contours_op.py
[Vision] fix find_contours_op bug (#274)
Documentation | 文档 | Contributors | Release Notes
MatxScript is an ahead of time compiler for a subset of the Python language.
pip install matxscript
import matx import timeit def fib(n: int) -> int: if n <= 1: return n else: return fib(n - 1) + fib(n - 2) if __name__ == '__main__': fib_script = matx.script(fib) # test on Macbook with m1 chip print(f'Python execution time: {timeit.timeit(lambda: fib(30), number=10)}s') # 1.59s print(f'Matx execution time: {timeit.timeit(lambda: fib_script(30), number=10)}s') # 0.03s
© Bytedance Inc. Licensed under an Apache-2.0 license.
Everyone is welcomed to contribute. We value all forms of contributions, including, but not limited to:
We learned a lot from the following projects when building MatxScript.
TVM: Part of MatxScript’s IR and Runtime originates from TVM. We also learned and adapted some part of codegen pipeline from TVM.
Python: Part of the runtime code comes from cpython for align the semantics
Folly: We adopted the idea of FBString to design our runtime::string_core
abseil-cpp: The string_view structure and ByteHash algorithm originates from abseil
rapidjson: The json module is implemented based on rapidjson
CV-CUDA: The vision CUDA runtime is developed using the operators provided by CV-CUDA.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
MatxScript
Documentation | 文档 | Contributors | Release Notes
MatxScript is an ahead of time compiler for a subset of the Python language.
Installation
A Quick Example
License
© Bytedance Inc. Licensed under an Apache-2.0 license.
Contribute to MatxScript
Everyone is welcomed to contribute. We value all forms of contributions, including, but not limited to:
Acknowledgement
We learned a lot from the following projects when building MatxScript.
TVM: Part of MatxScript’s IR and Runtime originates from TVM. We also learned and adapted some part of codegen pipeline from TVM.
Python: Part of the runtime code comes from cpython for align the semantics
Folly: We adopted the idea of FBString to design our runtime::string_core
abseil-cpp: The string_view structure and ByteHash algorithm originates from abseil
rapidjson: The json module is implemented based on rapidjson
CV-CUDA: The vision CUDA runtime is developed using the operators provided by CV-CUDA.