This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a change to branch refactor-s2
in repository https://gitbox.apache.org/repos/asf/tvm.git
discard 054de924e1 update code after array/map node to obj rename
discard a8ba7dd47a [FFI] Rename ArrayNode to ArrayObj, MapNode to MapObj
discard 0d09979104 Upgrade GetDataSize
discard 9753b471f9 [FFI] bool compact
discard b0ad042d66 NDArray migrate to new mechanism
discard a77d5d0320 [FFI] Introduce NDArray with DLPack support
discard 631f9a7f87 fix structural hash and relax tir codegen
discard 5e37ebefe4 Upgrade FFI to accept ndarray as handle
discard 6a014417bf fix python shape obj reg
discard b15fcc1967 Update string to make use of the new ffi::String convention
discard a6aa81d9bb [FFI] Make the data/size fields of ByteObjBase inline
discard 75c83042dd migrate shape to use ffi::Shape
discard f8fde0bcac [FFI] Introduce Shape
discard bd3621eedf Fix lower call packed
discard b441de69c7 [FFI] improve traceback
discard e109b4be9b Fix packed api testcases
discard c5efa64247 Fix chost caller
discard 025aeb8ffe Introduce a new ffi path for dev
discard 6672885601 Cleanup boxed primitive
discard 06c82262d0 [FFI] DType support for dlpack v1.1
discard ad705dd3d0 [FFI] upgrade dlpack to v1.1
discard 5b44161bc7 Upgrade error reporting mechanism ABI to new FFI.
discard a7ed2db09f Upgrade the caller side of ABI to make use of the latest FII
discard 2aba8d5a5c Upragde codegen callee side PackedAPI to use the latest FFI
ABI
discard 76f15684c3 [FFI] Enhance FFI error handling
discard 8de9f101d6 fix lin and MS
discard f7439f00ee Fix hexagon build
discard 2861a6e39b Fix hexagon flags
discard edf0b88933 [FFI] Fix flag
discard 7bb6997387 skip msc plugin
discard 5caff0a5c3 pylint
discard 352dc1a13f Fix MS trace
discard 6e634eae02 [CODEGEN] handle_byte_offset
discard ad197c3e64 [CODEGEN] TVMFFIAny support in struct get/set/alloca
discard 2a81cc4bc0 add handle add by byteoffset
discard b618fefac1 [FFI] reverts DLtensor align assert
discard d640a88102 Fixup MS to ensure concrete value
discard b70435b638 [FFI] consistent header size and alignment across platforms
discard 53ad9dacca fix load params
discard 8b42a9c05f [FFI] Add up more object info
discard a03652ab84 [FFI] Fix backtrace when symbol needs to be detected from
env
discard 87d37fe45a lint
discard 5d04f6d3a5 [FFI] clarify enabled into two categories
discard 8f97a7827a fix contrib items
discard 09c82c5ed4 lint
discard 120943f85c minor runtime fix
discard 418ffb7258 [FFI] 32bit compact
discard f7021cba0e Update
discard 0c2372326c fix web runtime
discard e8a385b43f [FFI] 32bit robustness
discard e95cc3ac05 [FFI] Move ByteArray to be consistent on 32bit for now
discard c9cf97b6fd Legacy always returns raw string to keep things simple
discard ae7a18dc75 Always return str in ffi
discard e77255c303 fix through web
discard 2ffee088e2 [FFI] minor update
discard a11d11353e update contrib
discard 3b6860efad fix lint
discard 60c5cabb15 fix msc and cpptests
discard abb12e2966 black
discard e3a1b84ec0 fix te
discard ed1fae2dad Fix vm setinput
discard cae628322c Fix adjust matmul order
discard 64189c5511 fix instrument
discard 86c2b7eae7 Fix vm codegen only
discard 5977b3088b fix onnx
discard 95ee7906b5 cpplint
discard 653cceb27c support legacy export dll
discard 0e98a67e29 fix layout free buffers
discard d1d3fdefe7 fix alteroplayout
discard 0c4802ba35 Fix MS JSON parser
discard cdab5613ed fix parser
discard 8b706e9640 fix tuning
discard 9b4aa69b70 fix memplan
discard 7cc06fc54f Fix reflection
discard b9a505c3ca fix legalize ops
discard 0e76958941 fix transform params
discard 29c8c7622b fix fuse tir
discard 7f37870217 fix topi reduction
discard 28532e8f83 Fix fuse
discard 22cf1470f8 fix through fuse ops
discard 006032451e Fix full
discard 4c81146af1 Fix dynamo
discard 1664e6dd02 Optional int migration finish
discard 47cde692f7 cpplint
discard d21a4e604a Move Optional<Integer> to Optional<int64_t>
discard 7c42bdf1fe work through shape lower
discard 00a5fd220a Fix through relax
discard ec1b97170a fix vm
discard 9f06f28f2c bugfix relax compiled
discard 254bee4cdd Remove attr normalize and rework tir and script
discard 150ed07d4e MS to use any trace
discard fe0bfba795 [FFI] Enable general contains check and upcast
discard 09cae8caae [FFI] Dtype string conversion to empty string to be
consistent
discard 40b338e7a9 Dlight minor wip
discard 3c73b659e8 Fix relax wip
discard 91400b61aa WIP through relax
discard bd70bf6926 Fix tvmscript
discard 18cf3f0749 Fix target
discard beb9c6735f Fix through MS
discard 4c9b744840 Fix disco nccl and vm bultin
discard d49e105e46 WIP through MS, some last items
discard 56d721ec92 fix ms replytrace
discard 9382f66fb0 Fix MS Getvalue bug
discard f1555603ad Backward compact ms
discard 7ace8532d3 Pass runtime
discard 36cc80df66 lint
discard 6a8e74c2a9 Fix through rpc
discard f1bdb7e50d Fix through runtime, rpc wip
discard f9e95ca623 Fix save
discard faa671ecf3 Fix codegen
discard 06bfdbfbcd [FFI] Support move from any
discard b0d212d720 fix schedule bug introduced in refactor
discard 8e2ba7d273 wip through schedule
discard f586399408 Fix for ir tests
discard 39c65b55a3 Fix rvalue passing in passes via std::function
discard 8199b35a04 Fix schedule setup attr
discard 427d3116a4 Fix up attr setup
discard a613e61215 Fix compile, need also update from the ffi side
discard bebf862f2e Fix attribute values for tir-transform
discard c7f77bf62b BUGfix reflection.cc
discard ba52627a9b minor fix
discard 2523b44ed0 Fix vk target
discard 4e5d8885c9 Fix op registeration
discard e4640e77d4 Fix trace
discard c8a8b2c15a Move towards pod attribute in mod and func
discard 51b9a56021 fix struct hash/equal
discard eaaa0fcdac push through script printer
discard c928bff25c fix up serialization
discard e0c78ea2c8 Fix up target
discard 2a87e83d02 [FFI] Update cast to be any aware
discard 275889a0ea [FFI] minor object error report
discard f7b0ef33eb upgrade target handling
discard 5b89aa4147 [FFI] Add reflection to runtime type index
discard f146b420a5 [FFI] Improve to ensure array.map have uniqueness
discard 81fe20b1e2 work on cpptests, need to visit one case
discard 1d15d9d8aa [FFI] Add static_field_type_index here
discard c0f9c9f4f3 [FFI] Add builtin types to dyn type table query
discard 9ce35adc0d Update test
discard 88fba32f38 fix through printer stmt
discard 74e30f62b9 fix target and phase out box value
discard 686d303338 fix target
discard 639f91b65a upgrade target
discard c487f4b72b upgrade target
discard 5a8d774fda fix logging compact
discard 3b5076a9b0 lint
discard cbe3371c17 [FFI] Introduce GetGlobalRequired
discard 1669f5411f Remove backup files
discard 6dc9047c97 wip through error
discard c9954909d2 [FFI] Traceback consistent with python
discard d4b51a6fda wip target migration
discard b2c0ccb71b WIP error migration
discard a32231e120 [FFI] Make Traceback argument order consistent with
appearance order
discard b8f8cf3b77 error hanlding patch
discard 2bf71cc61b wip tir-base
discard a4a0adfec2 lint
discard ed99b014a9 work through base
discard 006c28d51a [FFI] Introduce RValueRef for object type
discard deae53f6a3 Update per latest update
discard 4dd6c9e00e [FFI] Cleanup the functions in unsafe namespace
discard 395efefa8b [FFI] Introduce Tuple support
discard d6a9ba0f11 WIP through arith
discard 2e3ac39b33 fix dtype type traits
discard edd60b10b8 [FFI] Refactor to formalize container any storage policy
discard 7f3f9a89e6 Fix primexpr conversion and legacy convert
discard 807478c7a5 [FFI] Keep Optional<T> only for data structure for now and
use std::optional for as
discard 53fb2d5e37 change back dataflow expr
discard ccc65c1dca [FFI] change back to let optional always generate fresh
value for safety
discard 8e63208dea wip cross check mem safety
discard 41535d6ead [FFI] Remove Any traits for ObjectPtr so it can be kept
internal
discard 4da1c1362f update wip
discard 48eaeb30c9 [FFI] lint
discard f178aa4f07 update wip
discard 1b74a0eaec [FFI] Cleanup Any
discard a5c6f49cc5 [FFI] Formalize and adopt Optional throughout the codebase
discard 2cace8bd75 [FFI] Fix traceback with empty filename
discard 5106ce8c46 Update optional
discard 3c17737578 [FFI] WIP through optional
discard 4d31744246 wip through arith tests
discard 3dc1bca2a4 [FFI] more testcases on function value conversion
discard a26668608c [FFI] lint
discard baf48482ae [FFI] Add FallbackTypeTraits testcases
discard 0038b8321d enable primexpr overload
discard c48a1e9869 lint
discard fae1bb37e9 [FFI] lint
discard 015507f5aa fix wip
discard d6515a426d [FFI] Add string traits via fallback
discard dec9fd7aa3 auto convert int, str, float
discard d53bfc2ae0 cpplint
discard c97eaf7740 Fit new dtype API
discard 1c25609143 [FFI] Use formal CamelCase
discard 099e6fecab [FFI] minor
discard 4ca04c7dd5 get string correctly
discard 14e98b187e cpplint
discard c2a9ffcce7 [FFI] Formal dtype support with clear string conversion
discard 23abbda168 [FFI] Include field accessors
discard f15ad1caed Pass compile, now start trying
discard 60f77f65b3 [FFI] Minor recorg
discard 96614c0648 Fix python compile
discard 40e9bb9bca push through compile
discard 1607c4e657 [FFI] minor fix
discard 1df0a75313 push through tir topi and target
discard ddb039a713 [FFI] Introduce GetTypeKey to any and objectref
discard 15d63bbf02 [FFI] bugfix optional converstion
discard b674988d0d wip migrate map object to map any
discard 79544d611d [FFI] Debug optional
discard a7983d134e push through tir
discard ca77292b40 [FFI] Update with same_as
discard d278974217 Push through
discard e4ce489f29 push through relax
discard a05e23e6c6 [FFI] leverage std::optional for standard map get api
discard d775cf116e Change through relax and tir
discard f39da02a3a [FFI] Add shortcut to the as Node type
discard 387267fd2a [FFI] Fix missing include for optional
discard 69e3109c64 Move TryAs to as
discard e8feb26f48 [FFI] use std::optional for Object.as to keep things
self-contained
discard 71181dec8c [FFI] TryAs=>as to be consistent and simpler
discard 7e210fbab5 Fix repr
discard 97bdf6bcab Enable any print
discard 8faf5147ee lint
discard ad7cd51abe [FFI] lint
discard 4da68273e8 go through struct hash/equal
discard 74348b322d [FFI] Simplify AnyHash
discard f23fd1631d WIP need to move sequal/hash to handle any
discard b7e219c9fd Push through serialization
discard bd7930d68f [FFI] Add StaticTypeKey
discard 85d877146f Bulldoze through node
discard b4060ca136 lint
discard 9d7f87de3c Finish MS, good job
discard c4499d9179 push through MS
discard 5b668d8ecb WIP attrs, simplify to map<str, any>
discard 86cb950a6b WIP attrs, simplify to map<str, any>
discard 1495488a40 Redirect to variant
discard 052d084c04 Backup variant
discard 252ee99033 lint
discard ad2a0adea3 [FFI] Add variant support
discard 0e346b1ba9 go through env function
discard e471a314e3 [FFI] allow mutable call to captured functor
discard 719dd14b8f get through attrs
discard a50a307ffe Remove objectref scaffold to be direct
discard 24d487d5ae node wip
discard fdcd5ebcc0 run lint
discard fc33acfea9 [FFI] lint
discard 4cb29669c4 Runtime pass
discard 822f9ffa0b pass through runtime compile
discard 78c614e6f9 Push through rpc. now on to device module
discard ec90057600 [FFI] Add fwd compact NDArray compact with DLTensor
discard c305411211 wip rpc
discard e2ce946d0c push through disco
discard 4987806b66 WIP through vm and disco
discard 583be27b1c wip go through vm
discard 1264e9e863 getting clear path wip through disco now relax vm
discard 7c67f3a1a4 run clang-format
discard d6198020f3 [FFI] clang-format
discard b4f67aac2d Wip through new PackedArgs ffi
discard 8d3347c5fd [FFI] Refactor to keep param order args, num_args
discard 47fe527032 wip through relax vm
discard d8fbabd69a wip through relax vm
discard aa0f4b16ac Go through disco
discard 9e40b60ce5 [FFI] Add Any
discard ffd56e3a0e Go through disco runtime
discard 7d5d7d3b63 [FFI] Add more object tests
discard d14f38b6bb [FFI] Enhance Optional
discard 7a2f3b03e8 cpplint
discard bf43034d27 Finish container
discard 9954235921 cpp lint
discard 06184eff77 Pass runtime api compile
discard 2104b384d9 Make steady progress in runtime
discard 753f809b89 First stab debug compile pass
discard b86b478807 WIP swap in packed func
discard 8a347e07bd [FFI] Enhance raw string to any logic
discard 2832aa410d [FFI] Enhance Map conversion logic
discard 0b64e1d83a [FFI] add support for Bytes
discard f9e9e8eb99 [FFI] Fix up AnyView const convert
discard 644efb9d64 [FFI] Add support for TypedFunction
discard 9084783d0c Move in redirects for packedfunc
discard 1df2d6a72a Move out packed func for swapping
discard de0c73011c Move the containers to backup for swapping
discard 69f9eb84ba Cleanup cpplint and enhance object, move on to s1
discard dca03ce34d Remove legacy rust map/array support
discard 6df32c1806 Fix libsearch under new ffi folder
discard 4f625eee83 Add ASF headers
discard 1cabf3f9c0 fix lint and minor compile
discard ad6ef1a4c0 lint
discard 06bb2f22a6 Fix deleter to match latest
discard 1842bf04c7 Pass compile
discard 5a5a0a342b clang format
discard b73504f21d pass expr first stab
discard 6d5d733b20 Pass all runtime
discard 8ece630a4b pass object and runtime compile
discard 75ca1247ce Use specific import via using and not do global namespace
discard 7e805abf8f pass basic disco session compile
discard 7c904bdb3a pass ndarray compile
discard cb0ebd9cc6 pass packed func compile
discard 5152066127 Fix NDArray compile
discard 68aac5dfc5 Move over container on new object
discard eb09dfc003 First step, pass string compile
discard 963ce6ef67 CMake links ok
discard ee60c8b058 [REFACTOR] Migration starting pt
discard a56aa95618 Fix ffi
discard c7bbf07d04 [FFI] Enhance the deleter and reflection to be aware of
padding
discard 852b09131e Cleanup and focus on the integrated version
discard 4e53f7848a [FFI] bool, device, tensor, raw str
discard 936d643965 [FFI] Initial reflection support
discard f1c23ad1e1 [FFI] Global function registry
discard ccfd4a9df3 [FFI] Formalize SafeCall handling
discard ae86cc6f84 [FFI] Initial map support
discard ec7e2b095e [FFI] Optional Support
discard 733ee67f94 [FFI] Introduce String support
discard 0a08c2fad8 [FFI][REFACTOR] Cleanup naming convention and lint
discard f6ee025d7d [FFI] Introduce array support
discard 44967b940d [FFI] Improve Any coverage to include ObjectPtr
discard 2c9eac0d90 [FFI] Function support
discard 899d9505c4 [FFI] Any support
discard 1646fd9014 [FFI] Object type hierachy cast and check support
discard e272f04425 [FFI] Add libbacktrace support
discard 82f3c350a6 [FFI] ObjectRef based Error
discard 36a7d8b142 [FFI] Enable ObjectPtr and tests
discard f136b33d59 [FFI] Initial step to create ffi from the original tvm
source
discard 1b6d234884 [FFI] Initial Code Commit
add 1437d5caac [Relax][Pytorch] Add support for ones_like, zero_, zeros,
type_as, item ops (#17868)
add 1ab6f6ce63 [BugFix][Relax][Pytorch] Fix incorrect behaviour of % (mod)
operator in TVM frontend (#17882)
add 0149fcd3c6 Add support for index_put_ op (#17865)
add 67297c45a7 [CI] Upgrade pytorch to 2.7.0, torchvision to 0.22.0, and
vulkan sdk to 1.4.309 (#17887)
add c5675dd10d [Relax][PyTorch] Support linspace op for ExportedProgram
importer (#17889)
add 2de5b1e08c [Relax][PyTorch] Add torch.isin Op Support for Exported
Program and FX graph (#17878)
add 87b37b4d5b Fix onnx expand op (#17900)
add b1d1cdc4a0 [Relax][PyTorch] Support torch.bfloat16 dtype in pytorch
frontend (#17894)
add 47b95ca165 [Relax][FRONTEND][Pytorch] Add fmod support (#17893)
add ed477b0acb Add op support for zeros_like and fill_ (#17896)
add 03eadc6551 [CI] Install PyTorch 2.7 compatible with CUDA 11.8 (#17905)
new 991d25672f [FFI] Initial Code Commit
new 3e3d4048cb [FFI] Initial step to create ffi from the original tvm
source
new e2e1ad78c9 [FFI] Enable ObjectPtr and tests
new c368456782 [FFI] ObjectRef based Error
new edea62a5d2 [FFI] Add libbacktrace support
new ce3703349b [FFI] Object type hierachy cast and check support
new 4c4d847ecd [FFI] Any support
new e268c53401 [FFI] Function support
new d3bc5d1497 [FFI] Improve Any coverage to include ObjectPtr
new e45604476e [FFI] Introduce array support
new b761c0ccee [FFI][REFACTOR] Cleanup naming convention and lint
new c0d8dd9dc6 [FFI] Introduce String support
new b7b9908da6 [FFI] Optional Support
new 2a4a2b24e9 [FFI] Initial map support
new 9fc841faa6 [FFI] Formalize SafeCall handling
new bda7d60f26 [FFI] Global function registry
new ece3b48075 [FFI] Initial reflection support
new b0e9a26bba [FFI] bool, device, tensor, raw str
new 11eda23902 Cleanup and focus on the integrated version
new d38f62296c [FFI] Enhance the deleter and reflection to be aware of
padding
new 7ed2a88df6 Fix ffi
new 189a420a38 [REFACTOR] Migration starting pt
new dfce13e77b CMake links ok
new b7da225862 First step, pass string compile
new d3ae6e5b18 Move over container on new object
new 7fb59fef6f Fix NDArray compile
new 27c8cb3e7f pass packed func compile
new 25544a9adc pass ndarray compile
new 4d1a6c44d1 pass basic disco session compile
new 2daf562d2f Use specific import via using and not do global namespace
new 109544b013 pass object and runtime compile
new cd033b2bf5 Pass all runtime
new a48489a07d pass expr first stab
new 74273d91c9 clang format
new a7d6b9abf7 Pass compile
new c61a4db4fb Fix deleter to match latest
new d54c107326 lint
new e207c333a3 fix lint and minor compile
new c80af92f7c Add ASF headers
new c8cdf9b38f Fix libsearch under new ffi folder
new 9121a84847 Remove legacy rust map/array support
new 56b5e60b07 Cleanup cpplint and enhance object, move on to s1
new c1276963fb Move the containers to backup for swapping
new 991a3667b9 Move out packed func for swapping
new 59d279e634 Move in redirects for packedfunc
new 1a6a7b21aa [FFI] Add support for TypedFunction
new eb3ac62b6d [FFI] Fix up AnyView const convert
new 87927a4a3d [FFI] add support for Bytes
new 677f83e961 [FFI] Enhance Map conversion logic
new 3f77edadc0 [FFI] Enhance raw string to any logic
new e40805a4c1 WIP swap in packed func
new 523493c390 First stab debug compile pass
new fbcebcfa45 Make steady progress in runtime
new 152c551031 Pass runtime api compile
new 1b365a76f0 cpp lint
new 9f83f66c93 Finish container
new a13326a150 cpplint
new 109e001c96 [FFI] Enhance Optional
new a16f855c2b [FFI] Add more object tests
new 5d87d87e92 Go through disco runtime
new 5ec7d9a270 [FFI] Add Any
new 666ac76c33 Go through disco
new 8cbc9eac5a wip through relax vm
new 03650454f1 wip through relax vm
new cad07c58be [FFI] Refactor to keep param order args, num_args
new 603e7015ab Wip through new PackedArgs ffi
new 0ad8694331 [FFI] clang-format
new edff5175dd run clang-format
new 8d4c5128d3 getting clear path wip through disco now relax vm
new 54e976f569 wip go through vm
new 24db8f81fb WIP through vm and disco
new 825cc0e6e4 push through disco
new f19c4e8e92 wip rpc
new 2d1accf030 [FFI] Add fwd compact NDArray compact with DLTensor
new dfc592efa9 Push through rpc. now on to device module
new b6bdc85eb9 pass through runtime compile
new d92c40ea05 Runtime pass
new abe24f1801 [FFI] lint
new 574ca91d18 run lint
new f7e611e221 node wip
new 31f6229be7 Remove objectref scaffold to be direct
new 38be00c9f5 get through attrs
new e7b29ca094 [FFI] allow mutable call to captured functor
new 7ccd4ecd37 go through env function
new 62a1842cad [FFI] Add variant support
new 024f8f5c3f lint
new 0e1bdac847 Backup variant
new e3a8472939 Redirect to variant
new f8bdfc9bf2 WIP attrs, simplify to map<str, any>
new 0eb75b35c1 WIP attrs, simplify to map<str, any>
new 2cff3c31fe push through MS
new 520d3bf07b Finish MS, good job
new 5c916e1608 lint
new 12092a4717 Bulldoze through node
new 79e9ff5ba1 [FFI] Add StaticTypeKey
new 737346d84b Push through serialization
new 0aec6a05f8 WIP need to move sequal/hash to handle any
new 8642ce4168 [FFI] Simplify AnyHash
new 28d8c9ac1a go through struct hash/equal
new 963275e427 [FFI] lint
new 7e14a456bb lint
new e4ff530974 Enable any print
new 8d7c639ca1 Fix repr
new 6cc70c390a [FFI] TryAs=>as to be consistent and simpler
new 08aec4294f [FFI] use std::optional for Object.as to keep things
self-contained
new 2ed8cd73d2 Move TryAs to as
new 555b4ae124 [FFI] Fix missing include for optional
new 808d164203 [FFI] Add shortcut to the as Node type
new e99813baf6 Change through relax and tir
new a7d9df2c82 [FFI] leverage std::optional for standard map get api
new 103777dd10 push through relax
new 886cb3ce20 Push through
new 3585244d00 [FFI] Update with same_as
new 3e16670efe push through tir
new 8d5249df8a [FFI] Debug optional
new 9373ae0f0d wip migrate map object to map any
new 0cf5105023 [FFI] bugfix optional converstion
new e8611b5c80 [FFI] Introduce GetTypeKey to any and objectref
new 6404a7c020 push through tir topi and target
new ef356bc333 [FFI] minor fix
new 5d98b9fa68 push through compile
new e60134fac8 Fix python compile
new d2a5180c8a [FFI] Minor recorg
new c8ae2e8452 Pass compile, now start trying
new f4090a7e4b [FFI] Include field accessors
new 6ccc8d46b5 [FFI] Formal dtype support with clear string conversion
new c70c50f5a7 cpplint
new 17e9c34c5a get string correctly
new d9c884e679 [FFI] minor
new 6cadf102c5 [FFI] Use formal CamelCase
new b7b02b278b Fit new dtype API
new b40ea5b8e3 cpplint
new 21fb271297 auto convert int, str, float
new dc7e04835e [FFI] Add string traits via fallback
new f8cfb63d2a fix wip
new 906d6cd013 [FFI] lint
new da6986a172 lint
new e767d0ba5d enable primexpr overload
new b3eb8f57a2 [FFI] Add FallbackTypeTraits testcases
new 16bf6a0753 [FFI] lint
new 6323c5c3e6 [FFI] more testcases on function value conversion
new 335e05d9aa wip through arith tests
new 60419e8622 [FFI] WIP through optional
new 3273df0d4e Update optional
new a5f9362956 [FFI] Fix traceback with empty filename
new 50cad14010 [FFI] Formalize and adopt Optional throughout the codebase
new 4647a9a30a [FFI] Cleanup Any
new ca19e2d918 update wip
new 80885c1331 [FFI] lint
new 069b0c6058 update wip
new 937d61f2fb [FFI] Remove Any traits for ObjectPtr so it can be kept
internal
new dcd69c44ca wip cross check mem safety
new cd64b949b1 [FFI] change back to let optional always generate fresh
value for safety
new 12d957b0fe change back dataflow expr
new cf2a852a7b [FFI] Keep Optional<T> only for data structure for now and
use std::optional for as
new 292e85c15c Fix primexpr conversion and legacy convert
new ce635bc64f [FFI] Refactor to formalize container any storage policy
new 18da2f4f2c fix dtype type traits
new 29d0224138 WIP through arith
new 21b2b8d5ef [FFI] Introduce Tuple support
new 9d4d1011ae [FFI] Cleanup the functions in unsafe namespace
new d406720ad6 Update per latest update
new 6f9d901a36 [FFI] Introduce RValueRef for object type
new 038a841353 work through base
new b7ffbebb12 lint
new 1ddd21eaa2 wip tir-base
new 6c2a350c16 error hanlding patch
new a2316d634f [FFI] Make Traceback argument order consistent with
appearance order
new cff102c3f0 WIP error migration
new 95c8157dbb wip target migration
new 9a81e8f7cb [FFI] Traceback consistent with python
new 020eb1b67b wip through error
new fcbf46b681 Remove backup files
new f943acb593 [FFI] Introduce GetGlobalRequired
new d9bd8e8df2 lint
new f85099fe1f fix logging compact
new 7c3664abc7 upgrade target
new 21450dbdd2 upgrade target
new e7bb9f6447 fix target
new 3cf7ddd646 fix target and phase out box value
new a6695f1093 fix through printer stmt
new 093d025e52 Update test
new afce1eddab [FFI] Add builtin types to dyn type table query
new f485051dcc [FFI] Add static_field_type_index here
new 6eeff35f88 work on cpptests, need to visit one case
new 198fbd3f02 [FFI] Improve to ensure array.map have uniqueness
new c69dc8c20e [FFI] Add reflection to runtime type index
new e8d24298cd upgrade target handling
new 0c958291e3 [FFI] minor object error report
new 12eacddeec [FFI] Update cast to be any aware
new 3d32a0769e Fix up target
new 9d16c93df6 fix up serialization
new 81379dcdf3 push through script printer
new e01a426917 fix struct hash/equal
new a8afbaf56a Move towards pod attribute in mod and func
new b0218325b5 Fix trace
new a88831ac77 Fix op registeration
new 4ad8220c07 Fix vk target
new 2e9f2f4ac7 minor fix
new c0bf8e1ea2 BUGfix reflection.cc
new 68e238c324 Fix attribute values for tir-transform
new 3010d94cab Fix compile, need also update from the ffi side
new 1743c1e14c Fix up attr setup
new 39491a33b8 Fix schedule setup attr
new 7f5c040f22 Fix rvalue passing in passes via std::function
new f14c6a4533 Fix for ir tests
new a98e514959 wip through schedule
new d854654065 fix schedule bug introduced in refactor
new eb8f145468 [FFI] Support move from any
new 940bab8ea8 Fix codegen
new a5edd90403 Fix save
new e13f416300 Fix through runtime, rpc wip
new d8e3a8c1f9 Fix through rpc
new e449d3bfe7 lint
new 58e3c46c1b Pass runtime
new fb6cd9c937 Backward compact ms
new 30d7594fb7 Fix MS Getvalue bug
new e69378031a fix ms replytrace
new 01a6c337f5 WIP through MS, some last items
new 44f7b38e1b Fix disco nccl and vm bultin
new 165bdb717e Fix through MS
new 1d2b1c33c3 Fix target
new 75e8523661 Fix tvmscript
new 33e8b1e741 WIP through relax
new 56c917d734 Fix relax wip
new 45aa79da5e Dlight minor wip
new e2ddf72d2a [FFI] Dtype string conversion to empty string to be
consistent
new b7ec32f1e1 [FFI] Enable general contains check and upcast
new 9b21d5a2e3 MS to use any trace
new b9e55314fa Remove attr normalize and rework tir and script
new 2a14e18314 bugfix relax compiled
new 1dec5b329f fix vm
new ee2bdb42d6 Fix through relax
new d5fd987463 work through shape lower
new 7c2e6f9c8f Move Optional<Integer> to Optional<int64_t>
new 75c6540360 cpplint
new c04e3ea7a5 Optional int migration finish
new 746a250657 Fix dynamo
new b21fa86ca2 Fix full
new e9013edf8a fix through fuse ops
new 20c1e23b42 Fix fuse
new 525522b971 fix topi reduction
new 02e56bf34f fix fuse tir
new 231a5d1b30 fix transform params
new dc37e430ff fix legalize ops
new 36c16042ef Fix reflection
new ceb2bec2d1 fix memplan
new 347c1c63b4 fix tuning
new 45bdb2b34d fix parser
new c351cf560d Fix MS JSON parser
new 324ed87d28 fix alteroplayout
new 208e3e5fc8 fix layout free buffers
new ea195687eb support legacy export dll
new 30a50b23a0 cpplint
new 55cad49c07 fix onnx
new d4020d90e7 Fix vm codegen only
new 10a8b52641 fix instrument
new 1071b561ba Fix adjust matmul order
new 3da14e6c90 Fix vm setinput
new e807090c55 fix te
new b1ac26d267 black
new 712d47b075 fix msc and cpptests
new a76f093a6f fix lint
new 6e2ebc89a6 update contrib
new 02a5796eff [FFI] minor update
new d56fa100de fix through web
new 3f154d772f Always return str in ffi
new 63659d8a66 Legacy always returns raw string to keep things simple
new b3069f0203 [FFI] Move ByteArray to be consistent on 32bit for now
new a3b0072143 [FFI] 32bit robustness
new cd8f127022 fix web runtime
new 5727730c06 Update
new 717153c83f [FFI] 32bit compact
new b214219f93 minor runtime fix
new aeec88d905 lint
new f3558bfebd fix contrib items
new bbe6a47a4a [FFI] clarify enabled into two categories
new c2097a2b07 lint
new c896f58a14 [FFI] Fix backtrace when symbol needs to be detected from
env
new 92c9d708d1 [FFI] Add up more object info
new 8f8757a64b fix load params
new 13ac7dab8b [FFI] consistent header size and alignment across platforms
new 977dd0e506 Fixup MS to ensure concrete value
new 0201c51b2c [FFI] reverts DLtensor align assert
new cbe5a3a369 add handle add by byteoffset
new e42fda5d36 [CODEGEN] TVMFFIAny support in struct get/set/alloca
new 1d6c204916 [CODEGEN] handle_byte_offset
new d2ef7f9dea Fix MS trace
new 5fce12f472 pylint
new b30196314d skip msc plugin
new 645ed673b9 [FFI] Fix flag
new f166c8eaac Fix hexagon flags
new d16ae9a6f1 Fix hexagon build
new 81c7e6d779 fix lin and MS
new 72e705a4cf [FFI] Enhance FFI error handling
new e396ed2427 Upragde codegen callee side PackedAPI to use the latest FFI
ABI
new 5d9f1a2dcb Upgrade the caller side of ABI to make use of the latest FII
new 072fee3935 Upgrade error reporting mechanism ABI to new FFI.
new abfb00b093 [FFI] upgrade dlpack to v1.1
new 1cd236d7fe [FFI] DType support for dlpack v1.1
new 5bcabc7ccf Cleanup boxed primitive
new 85a32677ee Introduce a new ffi path for dev
new a5f0135bbd Fix chost caller
new 5a0471b21c Fix packed api testcases
new 625d3c5dc3 [FFI] improve traceback
new 2d359eab02 Fix lower call packed
new 1c72bff752 [FFI] Introduce Shape
new 6401b7ac7c migrate shape to use ffi::Shape
new 545a076854 [FFI] Make the data/size fields of ByteObjBase inline
new 3b442fa7ad Update string to make use of the new ffi::String convention
new 53cd6e1b01 fix python shape obj reg
new bb59acb834 Upgrade FFI to accept ndarray as handle
new 751b807174 fix structural hash and relax tir codegen
new dc8d556b8a [FFI] Introduce NDArray with DLPack support
new 302e3209d7 NDArray migrate to new mechanism
new 88b305c4dd [FFI] bool compact
new cb9b29ccef Upgrade GetDataSize
new 64e631c8a0 [FFI] Rename ArrayNode to ArrayObj, MapNode to MapObj
new 16fabcb68b update code after array/map node to obj rename
new f440ebf362 [FFI] Keep name FFIModule
new ad00ba96b6 Upragde to keep name FFI Module
new 09d73b4a9e [FFI] Rename GetTypeKey2Index
new d6876abbec run node reflection
new 73d434b7c0 [FFI] Create DataType helper function
new 40dd314040 upgrade to dtype changes
new a12bbef61d Setup cython basic items for new FFI
new 75c34c7702 [FFI] Add testing
new 8726b73723 [FFI] Clarify more on safe call
new c8c87b1a65 [FFI] Introduce Formal ErrorInfo
new 74eab89ba9 upgrade to latest erorr abi
new f6a86de4cd Cython func call with error handling
new e5a6fa36b6 [FFI] Device support
new 94232ad988 Cython Device support
new b6dcfe90e6 [FFI] Fix DLPack
new cd47661b66 Cython DLPack and NDArray support
new 24eb79c29f [FFI] Add container registered funcs
new 85f5e06f0a Cython all container ready
new 232a7e12d1 Cython some improvement of convention
new d3acd9d4f7 [FFI] update error handling
new ae2cd5b44c Cython migrate to new error handling
new d46686fae8 [FFI] Add CheckSignal support for long running fn
new 64a86685bd Add check signal support
new eb8035b299 [FFI] Enable set_body_method
new 2bf7d9f85c [FFI] Isolate reflection as submodule
new 811a5b7a94 Update code to reflect latest changes
new 2a0531442c [FFI] More global function access utils
new 889ae5444b Swap global registry to use ffi::Function
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (054de924e1)
\
N -- N -- N refs/heads/refactor-s2 (889ae5444b)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 347 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
apps/cpp_rpc/rpc_env.cc | 66 ++--
apps/cpp_rpc/rpc_server.cc | 2 +-
apps/hexagon_launcher/launcher_core.cc | 4 +-
apps/ios_rpc/tvmrpc/RPCServer.mm | 4 +-
apps/ios_rpc/tvmrpc/TVMRuntime.mm | 53 +--
docker/install/ubuntu_install_onnx.sh | 18 +-
docker/install/ubuntu_install_vulkan.sh | 6 +-
docs/arch/device_target_interactions.rst | 2 +-
docs/arch/pass_infra.rst | 6 +-
docs/arch/runtime.rst | 4 +-
ffi/CMakeLists.txt | 3 +
ffi/include/tvm/ffi/c_api.h | 160 ++++++--
ffi/include/tvm/ffi/container/array.h | 3 +
ffi/include/tvm/ffi/container/shape.h | 5 +-
ffi/include/tvm/ffi/dtype.h | 265 ++-----------
ffi/include/tvm/ffi/error.h | 56 ++-
ffi/include/tvm/ffi/function.h | 186 ++++++++--
ffi/include/tvm/ffi/function_details.h | 25 ++
ffi/include/tvm/ffi/object.h | 30 ++
ffi/include/tvm/ffi/{ => reflection}/reflection.h | 79 +---
ffi/include/tvm/ffi/type_traits.h | 20 +
ffi/src/ffi/container.cc | 73 ++++
ffi/{include/tvm/ffi/dtype.h => src/ffi/dtype.cc} | 160 +++-----
ffi/src/ffi/function.cc | 191 +++++++++-
ffi/src/ffi/ndarray.cc | 13 +-
ffi/src/ffi/object.cc | 6 +-
ffi/src/ffi/testing.cc | 61 +++
ffi/src/ffi/traceback.h | 18 +-
ffi/tests/cpp/test_any.cc | 12 +-
ffi/tests/cpp/test_array.cc | 4 +-
ffi/tests/cpp/test_dtype.cc | 2 +-
ffi/tests/cpp/test_error.cc | 10 +-
ffi/tests/cpp/test_function.cc | 32 +-
ffi/tests/cpp/test_map.cc | 4 +-
ffi/tests/cpp/test_optional.cc | 2 +-
ffi/tests/cpp/test_reflection.cc | 7 +-
ffi/tests/cpp/test_rvalue_ref.cc | 8 +-
ffi/tests/cpp/test_tuple.cc | 8 +-
ffi/tests/cpp/test_variant.cc | 8 +-
ffi/tests/cpp/testing_object.h | 10 +-
include/tvm/ir/op.h | 2 +-
include/tvm/ir/transform.h | 2 +-
include/tvm/relax/attrs/manipulate.h | 14 +
include/tvm/relax/tuning_api.h | 12 +-
include/tvm/runtime/module.h | 2 +-
include/tvm/runtime/object.h | 3 +-
include/tvm/runtime/packed_func.h | 4 +-
include/tvm/runtime/registry.h | 307 +--------------
include/tvm/target/target_kind.h | 2 +-
jvm/core/src/main/java/org/apache/tvm/Device.java | 42 +--
python/setup.py | 2 +-
python/tvm/_ffi/runtime_ctypes.py | 14 +-
python/tvm/contrib/cutlass/attention_operation.py | 20 +-
python/tvm/contrib/cutlass/conv2d_operation.py | 5 +-
python/tvm/contrib/cutlass/gemm_operation.py | 10 +-
python/tvm/contrib/cutlass/layer_norm_operation.py | 5 +-
python/tvm/contrib/cutlass/rms_norm_operation.py | 5 +-
python/tvm/contrib/msc/core/utils/info.py | 2 +-
python/tvm/dlight/benchmark/bench.py | 2 +-
python/tvm/ffi/{cython => }/.gitignore | 0
python/tvm/ffi/__init__.py | 47 ++-
.../tvm/ffi/_ffi_api.py | 8 +-
python/tvm/{ir => ffi}/container.py | 94 +++--
python/tvm/ffi/convert.py | 59 +++
python/tvm/ffi/cython/__init__.py | 17 -
python/tvm/ffi/cython/base.pxi | 206 ++++++++++
python/tvm/ffi/cython/core.pyx | 12 +-
python/tvm/ffi/cython/device.pxi | 152 ++++++++
python/tvm/ffi/cython/dtype.pxi | 81 ++++
python/tvm/ffi/cython/error.pxi | 130 +++++++
python/tvm/ffi/cython/function.pxi | 283 ++++++++++++++
python/tvm/ffi/cython/ndarray.pxi | 290 +++++++++++++++
python/tvm/{_ffi/_cython => ffi/cython}/object.pxi | 214 ++++++-----
python/tvm/ffi/cython/string.pxi | 83 +++++
python/tvm/{ir/analysis.py => ffi/dtype.py} | 43 ++-
python/tvm/ffi/error.py | 171 +++++++++
python/tvm/ffi/ndarray.py | 252 +++++++++++++
python/tvm/ffi/registry.py | 171 +++++++++
python/tvm/relax/frontend/nn/core.py | 2 +-
python/tvm/relax/frontend/onnx/onnx_frontend.py | 22 +-
.../frontend/torch/base_fx_graph_translator.py | 99 +++++
.../frontend/torch/exported_program_translator.py | 26 +-
python/tvm/relax/frontend/torch/fx_translator.py | 22 +-
python/tvm/relax/op/__init__.py | 1 +
python/tvm/relax/op/manipulate.py | 51 +++
python/tvm/relax/op/op_attrs.py | 5 +
.../tvm/relax/transform/legalize_ops/manipulate.py | 22 ++
python/tvm/runtime/ndarray.py | 4 +-
python/tvm/script/ir_builder/relax/ir.py | 2 +
python/tvm/target/detect_target.py | 2 +-
python/tvm/topi/__init__.py | 1 +
python/tvm/topi/index_put.py | 117 ++++++
src/arith/analyzer.cc | 2 +-
src/arith/int_constraints.cc | 2 +-
src/arith/solve_linear_equation.cc | 28 +-
src/arith/solve_linear_inequality.cc | 28 +-
src/contrib/msc/core/codegen/cpp_codegen.h | 19 +-
src/contrib/msc/core/transform/set_expr_layout.cc | 4 +-
src/contrib/msc/framework/tensorrt/codegen.cc | 15 +-
src/ir/diagnostic.cc | 8 +-
src/ir/env_func.cc | 6 +-
src/ir/function.cc | 2 +-
src/ir/global_var_supply.cc | 6 +-
src/ir/module.cc | 9 +-
src/ir/name_supply.cc | 9 +-
src/ir/transform.cc | 35 +-
src/meta_schedule/arg_info.cc | 2 +-
src/meta_schedule/builder/builder.cc | 2 +-
src/meta_schedule/cost_model/cost_model.cc | 7 +-
src/meta_schedule/database/database.cc | 30 +-
.../feature_extractor/feature_extractor.cc | 2 +-
.../measure_callback/measure_callback.cc | 2 +-
.../measure_callback/remove_build_artifact.cc | 5 +-
src/meta_schedule/mutator/mutator.cc | 4 +-
src/meta_schedule/postproc/postproc.cc | 6 +-
src/meta_schedule/profiler.cc | 4 +-
src/meta_schedule/runner/runner.cc | 8 +-
.../schedule_rule/apply_custom_rule.cc | 6 +-
src/meta_schedule/schedule_rule/schedule_rule.cc | 8 +-
.../search_strategy/search_strategy.cc | 12 +-
.../space_generator/space_generator.cc | 20 +-
src/meta_schedule/task_scheduler/task_scheduler.cc | 13 +-
src/meta_schedule/tune_context.cc | 5 +-
src/meta_schedule/utils.h | 12 +-
src/node/object_path.cc | 24 +-
src/node/reflection.cc | 8 +-
src/relax/backend/contrib/clml/codegen.cc | 5 +-
src/relax/backend/contrib/cublas/codegen.cc | 5 +-
src/relax/backend/contrib/cudnn/codegen.cc | 5 +-
src/relax/backend/contrib/cutlass/codegen.cc | 25 +-
src/relax/backend/contrib/dnnl/codegen.cc | 3 +-
src/relax/backend/contrib/hipblas/codegen.cc | 3 +-
src/relax/backend/contrib/nnapi/codegen.cc | 5 +-
src/relax/backend/contrib/tensorrt/codegen.cc | 5 +-
src/relax/backend/contrib/utils.h | 35 +-
src/relax/backend/task_extraction.cc | 6 +-
src/relax/backend/vm/exec_builder.cc | 8 +-
src/relax/ir/block_builder.cc | 29 +-
src/relax/op/tensor/manipulate.cc | 123 ++++++
src/relax/op/tensor/manipulate.h | 13 +
src/relax/transform/few_shot_tuning.cc | 21 +-
src/relax/transform/fold_constant.cc | 10 +-
src/relax/transform/gradient.cc | 6 +-
src/relax/transform/meta_schedule.cc | 15 +-
src/relax/transform/run_codegen.cc | 9 +-
src/relax/transform/tuning_api/database.cc | 19 +-
src/relax/transform/tuning_api/primitives.cc | 34 +-
src/runtime/c_runtime_api.cc | 35 +-
src/runtime/contrib/amx/amx_config.cc | 4 +-
src/runtime/contrib/cblas/cblas.cc | 23 +-
src/runtime/contrib/cblas/dnnl_blas.cc | 2 +-
src/runtime/contrib/cblas/mkl.cc | 40 +-
src/runtime/contrib/clml/clml_runtime.cc | 8 +-
src/runtime/contrib/coreml/coreml_runtime.mm | 2 +-
src/runtime/contrib/cublas/cublas.cc | 120 +++---
src/runtime/contrib/cublas/cublas_json_runtime.cc | 5 +-
src/runtime/contrib/cudnn/conv_backward.cc | 8 +-
src/runtime/contrib/cudnn/conv_forward.cc | 8 +-
src/runtime/contrib/cudnn/cudnn_utils.cc | 4 +-
src/runtime/contrib/cudnn/softmax.cc | 6 +-
src/runtime/contrib/curand/curand.cc | 5 +-
src/runtime/contrib/cutlass/fp16_group_gemm.cu | 5 +-
.../contrib/cutlass/fp8_blockwise_scaled_gemm.cu | 8 +-
src/runtime/contrib/cutlass/fp8_gemm.cu | 6 +-
src/runtime/contrib/cutlass/fp8_group_gemm.cu | 5 +-
src/runtime/contrib/dnnl/dnnl.cc | 2 +-
src/runtime/contrib/edgetpu/edgetpu_runtime.cc | 7 +-
src/runtime/contrib/hipblas/hipblas.cc | 39 +-
.../contrib/hipblas/hipblas_json_runtime.cc | 6 +-
src/runtime/contrib/miopen/conv_forward.cc | 227 +++++------
src/runtime/contrib/miopen/miopen_utils.cc | 4 +-
src/runtime/contrib/miopen/softmax.cc | 6 +-
src/runtime/contrib/mps/conv.mm | 108 +++---
src/runtime/contrib/mps/gemm.mm | 2 +-
src/runtime/contrib/mps/mps_utils.mm | 4 +-
src/runtime/contrib/mrvl/mrvl_runtime.cc | 2 +-
src/runtime/contrib/mrvl/mrvl_sw_runtime_lib.cc | 10 +-
src/runtime/contrib/msc/tensorrt_runtime.cc | 8 +-
src/runtime/contrib/random/random.cc | 116 +++---
src/runtime/contrib/rocblas/rocblas.cc | 74 ++--
src/runtime/contrib/sort/sort.cc | 129 +++----
src/runtime/contrib/tflite/tflite_runtime.cc | 2 +-
src/runtime/contrib/thrust/thrust.cu | 6 +-
src/runtime/cpu_device_api.cc | 2 +-
src/runtime/cuda/cuda_device_api.cc | 4 +-
src/runtime/cuda/l2_cache_flush.cc | 2 +-
src/runtime/disco/bcast_session.cc | 6 +-
src/runtime/disco/builtin.cc | 13 +-
src/runtime/disco/disco_worker.cc | 4 +-
src/runtime/disco/distributed/socket_session.cc | 10 +-
src/runtime/disco/loader.cc | 2 +-
src/runtime/disco/nccl/nccl_context.h | 4 +-
src/runtime/disco/process_session.cc | 2 +-
src/runtime/disco/protocol.h | 9 +-
src/runtime/disco/session.cc | 21 +-
src/runtime/dso_library.cc | 9 +-
src/runtime/hexagon/hexagon_common.cc | 9 +-
src/runtime/hexagon/hexagon_device_api.cc | 143 +++----
src/runtime/hexagon/rpc/android/session.cc | 2 +-
src/runtime/hexagon/rpc/hexagon/rpc_server.cc | 10 +-
src/runtime/hexagon/rpc/simulator/rpc_server.cc | 12 +-
src/runtime/hexagon/rpc/simulator/session.cc | 2 +-
src/runtime/library_module.cc | 20 +-
src/runtime/memory/memory_manager.cc | 2 +-
src/runtime/metal/metal_device_api.mm | 2 +-
src/runtime/module.cc | 39 +-
src/runtime/object_internal.h | 2 +-
src/runtime/opencl/opencl_device_api.cc | 61 +--
src/runtime/profiling.cc | 7 +-
src/runtime/regex.cc | 9 +-
src/runtime/registry.cc | 79 +---
src/runtime/relax_vm/builtin.cc | 10 +-
src/runtime/relax_vm/cuda/cuda_graph_builtin.cc | 4 +-
src/runtime/relax_vm/kv_state.cc | 42 +--
src/runtime/relax_vm/lm_support.cc | 2 +-
src/runtime/relax_vm/paged_kv_cache.cc | 18 +-
src/runtime/relax_vm/vm.cc | 8 +-
src/runtime/rocm/rocm_device_api.cc | 4 +-
src/runtime/rpc/rpc_device_api.cc | 2 +-
src/runtime/rpc/rpc_endpoint.cc | 10 +-
src/runtime/rpc/rpc_local_session.cc | 4 +-
src/runtime/rpc/rpc_module.cc | 23 +-
src/runtime/rpc/rpc_pipe_impl.cc | 2 +-
src/runtime/rpc/rpc_server_env.cc | 10 +-
src/runtime/rpc/rpc_socket_impl.cc | 4 +-
src/runtime/system_library.cc | 2 +-
src/runtime/thread_pool.cc | 14 +-
src/runtime/vulkan/vulkan_device_api.cc | 2 +-
src/script/ir_builder/base.cc | 8 +-
src/script/printer/doc.cc | 7 +-
src/script/printer/tir/expr.cc | 2 +-
src/support/errno_handling.h | 4 +-
src/support/ffi_testing.cc | 58 +--
src/target/codegen.cc | 8 +-
src/target/datatype/registry.cc | 51 +--
src/target/datatype/registry.h | 23 +-
src/target/llvm/codegen_aarch64.cc | 2 +-
src/target/llvm/codegen_amdgpu.cc | 13 +-
src/target/llvm/codegen_arm.cc | 2 +-
src/target/llvm/codegen_cpu.cc | 27 +-
src/target/llvm/codegen_cpu.h | 6 +-
src/target/llvm/codegen_hexagon.cc | 8 +-
src/target/llvm/codegen_llvm.cc | 6 +-
src/target/llvm/codegen_nvptx.cc | 6 +-
src/target/llvm/codegen_x86_64.cc | 2 +-
src/target/llvm/intrin_rule_hexagon.cc | 16 +-
src/target/opt/build_cuda_on.cc | 9 +-
src/target/parsers/cpu.cc | 6 +-
src/target/source/codegen_c_host.cc | 5 +-
src/target/source/codegen_cuda.cc | 6 +-
src/target/source/codegen_metal.cc | 3 +-
src/target/source/codegen_opencl.cc | 3 +-
src/target/spirv/spirv_utils.cc | 5 +-
src/target/target.cc | 31 +-
src/target/target_info.cc | 4 +-
src/target/target_kind.cc | 3 +-
src/te/operation/create_primfunc.cc | 15 +-
src/te/tensor.cc | 4 +-
src/tir/analysis/var_use_def_analysis.cc | 19 +-
src/tir/ir/block_dependence_info.cc | 2 +-
src/tir/ir/block_scope.cc | 6 +-
src/tir/ir/buffer.cc | 2 +-
src/tir/ir/expr.cc | 3 +-
src/tir/ir/stmt_functor.cc | 2 +-
src/tir/op/op.cc | 22 +-
src/tir/schedule/schedule.cc | 113 +++---
src/tir/schedule/state.cc | 4 +-
src/tir/schedule/trace.cc | 16 +-
src/tir/transforms/transform_mma_buffer_layout.cc | 8 +-
src/tir/transforms/unsupported_dtype_legalize.cc | 5 +-
src/topi/broadcast.cc | 4 +-
src/topi/einsum.cc | 2 +-
src/topi/elemwise.cc | 80 ++--
src/topi/nn.cc | 60 +--
src/topi/reduction.cc | 18 +-
src/topi/transform.cc | 92 ++---
src/topi/utils.cc | 16 +-
src/topi/vision.cc | 2 +-
tests/cpp-runtime/hexagon/run_all_tests.cc | 2 +-
tests/cpp-runtime/hexagon/run_unit_tests.cc | 2 +-
tests/cpp/llvm_codegen_registry_test.cc | 18 +-
tests/cpp/target_test.cc | 4 +-
tests/python/contrib/test_hexagon/README_RPC.md | 4 +-
tests/python/ffi/test_container.py | 62 ++++
tests/python/{target => ffi}/test_device.py | 35 +-
tests/python/{ir => ffi}/test_dtype.py | 24 +-
tests/python/ffi/test_error.py | 108 ++++++
tests/python/ffi/test_function.py | 115 ++++++
tests/python/ffi/test_ndarray.py | 47 +++
.../relax/test_frontend_from_exported_program.py | 413 ++++++++++++++++++++-
tests/python/relax/test_frontend_from_fx.py | 334 ++++++++++++++++-
tests/python/relax/test_frontend_onnx.py | 6 +
tests/python/target/test_target_target.py | 9 +-
web/emcc/tvmjs_support.cc | 20 +-
web/emcc/wasm_runtime.cc | 58 +--
web/emcc/webgpu_runtime.cc | 14 +-
296 files changed, 6333 insertions(+), 2962 deletions(-)
rename ffi/include/tvm/ffi/{ => reflection}/reflection.h (58%)
create mode 100644 ffi/src/ffi/container.cc
copy ffi/{include/tvm/ffi/dtype.h => src/ffi/dtype.cc} (68%)
create mode 100644 ffi/src/ffi/testing.cc
rename python/tvm/ffi/{cython => }/.gitignore (100%)
copy conda/recipe/install_libtvm.sh => python/tvm/ffi/_ffi_api.py (92%)
mode change 100755 => 100644
copy python/tvm/{ir => ffi}/container.py (55%)
create mode 100644 python/tvm/ffi/convert.py
delete mode 100644 python/tvm/ffi/cython/__init__.py
create mode 100644 python/tvm/ffi/cython/base.pxi
create mode 100644 python/tvm/ffi/cython/device.pxi
create mode 100644 python/tvm/ffi/cython/dtype.pxi
create mode 100644 python/tvm/ffi/cython/error.pxi
create mode 100644 python/tvm/ffi/cython/function.pxi
create mode 100644 python/tvm/ffi/cython/ndarray.pxi
copy python/tvm/{_ffi/_cython => ffi/cython}/object.pxi (57%)
create mode 100644 python/tvm/ffi/cython/string.pxi
copy python/tvm/{ir/analysis.py => ffi/dtype.py} (59%)
create mode 100644 python/tvm/ffi/error.py
create mode 100644 python/tvm/ffi/ndarray.py
create mode 100644 python/tvm/ffi/registry.py
create mode 100644 python/tvm/topi/index_put.py
create mode 100644 tests/python/ffi/test_container.py
copy tests/python/{target => ffi}/test_device.py (68%)
copy tests/python/{ir => ffi}/test_dtype.py (74%)
create mode 100644 tests/python/ffi/test_error.py
create mode 100644 tests/python/ffi/test_function.py
create mode 100644 tests/python/ffi/test_ndarray.py