Commit a7a0168
authored
[FFI][REFACTOR] Establish tvm_ffi python module (#18226)
* [FFI][REFACTOR] Establish tvm_ffi as a standalone python module
This PR establishes tvm_ffi as a standalone python module.
The ffi is structured as a minimal pip module that can be
directly install by path or url.
examples/get_started provided a minimal example.
This is a major change as we are decoupling tvm_ffi as a
separate package, users need to install tvm_ffi separately.
Thanks to its minimal dependency, tvm_ffi can be easily installed
even just from the source by pip install ./ffi
This change would enable future improvement for library plugins
to have lightweight dependencies by just working on top of
the tvm_ffi, while the main compiler toolchain and runtime
can be layered on top.
* [FFI] Improve traceback setups
This PR improves traceback related setups1 parent 835e695 commit a7a0168
File tree
342 files changed
+2054
-1007
lines changed- .github/actions/setup
- 3rdparty
- apps/cpp_rpc
- ci/jenkins
- generated
- cmake/modules
- conda
- docs
- arch
- install
- ffi
- 3rdparty
- cmake
- Utils
- examples/get_started
- src
- include/tvm/ffi
- licenses
- python/tvm_ffi
- cython
- scripts
- src/ffi
- extra
- tests
- cpp
- python
- include/tvm/runtime
- python
- tvm
- arith
- contrib
- cutlass
- hexagon
- msc
- core
- ir
- framework
- tensorflow
- tensorrt
- torch
- tvm
- plugin
- op
- dlight/analysis
- driver
- exec
- ir
- diagnostics
- meta_schedule
- builder
- cost_model
- database
- feature_extractor
- measure_callback
- mutator
- postproc
- runner
- schedule_rule
- search_strategy
- space_generator
- task_scheduler
- testing
- relax
- analysis
- backend
- cuda
- metal
- distributed
- transform
- dpl
- op
- builtin
- ccl
- distributed
- grad
- image
- memory
- nn
- vm
- testing
- training
- transform
- rpc
- runtime
- disco
- profiling
- script
- ir_builder
- ir
- relax
- distributed
- tir
- printer
- target
- testing
- te
- tir
- analysis
- schedule
- tensor_intrin
- transform
- topi/cpp
- vision
- src
- runtime/rpc
- support
- tir/schedule
- tests
- python
- codegen
- disco
- ir
- meta_schedule
- relax
- tir-base
- tir-transform
- tvmscript
- scripts
- unity
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
342 files changed
+2054
-1007
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | | - | |
| 8 | + | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
501 | 499 | | |
502 | 500 | | |
503 | 501 | | |
504 | | - | |
| 502 | + | |
505 | 503 | | |
506 | 504 | | |
507 | 505 | | |
| |||
510 | 508 | | |
511 | 509 | | |
512 | 510 | | |
| 511 | + | |
513 | 512 | | |
514 | 513 | | |
515 | 514 | | |
| |||
519 | 518 | | |
520 | 519 | | |
521 | 520 | | |
522 | | - | |
523 | 521 | | |
524 | 522 | | |
525 | 523 | | |
| |||
528 | 526 | | |
529 | 527 | | |
530 | 528 | | |
| 529 | + | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
537 | 536 | | |
| 537 | + | |
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | 605 | | |
610 | 606 | | |
611 | 607 | | |
| |||
633 | 629 | | |
634 | 630 | | |
635 | 631 | | |
| 632 | + | |
636 | 633 | | |
637 | 634 | | |
638 | 635 | | |
| |||
643 | 640 | | |
644 | 641 | | |
645 | 642 | | |
646 | | - | |
647 | 643 | | |
648 | 644 | | |
649 | 645 | | |
| |||
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | 686 | | |
704 | 687 | | |
705 | 688 | | |
| |||
713 | 696 | | |
714 | 697 | | |
715 | 698 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | 699 | | |
722 | 700 | | |
723 | 701 | | |
| |||
779 | 757 | | |
780 | 758 | | |
781 | 759 | | |
782 | | - | |
783 | | - | |
| 760 | + | |
| 761 | + | |
784 | 762 | | |
785 | 763 | | |
786 | 764 | | |
| |||
789 | 767 | | |
790 | 768 | | |
791 | 769 | | |
792 | | - | |
| 770 | + | |
| 771 | + | |
793 | 772 | | |
794 | 773 | | |
795 | 774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 110 | | |
121 | 111 | | |
122 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments