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 aa7b897f29 Upgrade error reporting mechanism ABI to new FFI.
discard 8ac4c9b587 Upgrade the caller side of ABI to make use of the latest FII
discard 47ab0bbdf8 Upragde codegen callee side PackedAPI to use the latest FFI
ABI
discard 43804d879d [FFI] Enhance FFI error handling
discard 4903115e15 fix lin and MS
discard 3cb31f1f0d Fix hexagon build
discard e435d5c06b Fix hexagon flags
discard 033b4a31ff [FFI] Fix flag
discard 6ddcbcbc34 skip msc plugin
discard 50763adc82 pylint
discard 01e0a144b3 Fix MS trace
discard e16decbab0 [CODEGEN] handle_byte_offset
discard 8f33143cfd [CODEGEN] TVMFFIAny support in struct get/set/alloca
discard 9ee70e95dc add handle add by byteoffset
discard 596ee8bd85 [FFI] reverts DLtensor align assert
discard 3b0c654c89 Fixup MS to ensure concrete value
discard dd4bdad212 [FFI] consistent header size and alignment across platforms
discard 28abd42f29 fix load params
discard 30343f01db [FFI] Add up more object info
discard 720335c0e6 [FFI] Fix backtrace when symbol needs to be detected from
env
discard af5d18edca lint
discard 8a52b682b4 [FFI] clarify enabled into two categories
discard ffbe898957 fix contrib items
discard ca89530a02 lint
discard 4f591c9104 minor runtime fix
discard 0b441dfa51 [FFI] 32bit compact
discard e48ec28531 Update
discard 71e4048fe6 fix web runtime
discard 71d119c136 [FFI] 32bit robustness
discard e4186e7e85 [FFI] Move ByteArray to be consistent on 32bit for now
discard fd75d57c4c Legacy always returns raw string to keep things simple
discard 18779fe16a Always return str in ffi
discard 0e8cdf2ccf fix through web
discard 1eabb1503b [FFI] minor update
discard 493e97c2e5 update contrib
discard abf14fae19 fix lint
discard 8d2d64aa8d fix msc and cpptests
discard 0033b3999e black
discard f8b6367c1e fix te
discard 1560fa94d1 Fix vm setinput
discard 4df722d0a1 Fix adjust matmul order
discard eff5440df8 fix instrument
discard 88a687ee1b Fix vm codegen only
discard 8e0885b706 fix onnx
discard eb0ef0c3e9 cpplint
discard 51669c070c support legacy export dll
discard 76ee0b6810 fix layout free buffers
discard cc3d804c5f fix alteroplayout
discard d4dedf3503 Fix MS JSON parser
discard 1b6bf4e754 fix parser
discard f2ba0fb253 fix tuning
discard 6b73fc060f fix memplan
discard a9294b2ee9 Fix reflection
discard fbe8f58875 fix legalize ops
discard 95fe5140ec fix transform params
discard 78492557be fix fuse tir
discard 4e04c09a95 fix topi reduction
discard a5c8431d21 Fix fuse
discard df6ec6a2ec fix through fuse ops
discard a958b73933 Fix full
discard d83849a551 Fix dynamo
discard ff77b9e391 Optional int migration finish
discard db171f2125 cpplint
discard 30581fa181 Move Optional<Integer> to Optional<int64_t>
discard 54e9084672 work through shape lower
discard 85568be88c Fix through relax
discard 8d4b8a58c5 fix vm
discard a1d0f5cbbc bugfix relax compiled
discard 350491abae Remove attr normalize and rework tir and script
discard f517d55a11 MS to use any trace
discard c99dc1bdba [FFI] Enable general contains check and upcast
discard 0918617694 [FFI] Dtype string conversion to empty string to be
consistent
discard d95608e52d Dlight minor wip
discard 0e361ceae4 Fix relax wip
discard 6b325dbe3e WIP through relax
discard 56455c0a6e Fix tvmscript
discard b38c21c7de Fix target
discard b867a298ac Fix through MS
discard 34456602ba Fix disco nccl and vm bultin
discard 19438e6f50 WIP through MS, some last items
discard d449117959 fix ms replytrace
discard 7ed0b367d7 Fix MS Getvalue bug
discard 46f22c4f14 Backward compact ms
discard 714c1e3f77 Pass runtime
discard 508453b2a2 lint
discard b3d0223268 Fix through rpc
discard 3448d41674 Fix through runtime, rpc wip
discard ef8bec3794 Fix save
discard 90f35d3870 Fix codegen
discard 9802b15b01 [FFI] Support move from any
discard 52f0e979b3 fix schedule bug introduced in refactor
discard 807a30ae32 wip through schedule
discard d5bbe19e77 Fix for ir tests
discard 51f6362636 Fix rvalue passing in passes via std::function
discard a8cb80bc89 Fix schedule setup attr
discard 024b24695b Fix up attr setup
discard bc1ba0abbf Fix compile, need also update from the ffi side
discard d450f43a3f Fix attribute values for tir-transform
discard ec850e120c BUGfix reflection.cc
discard 34d3688a66 minor fix
discard 5db63165fa Fix vk target
discard 3f96795b60 Fix op registeration
discard 583ab65d19 Fix trace
discard de55459f52 Move towards pod attribute in mod and func
discard f2f77f4ee1 fix struct hash/equal
discard 6cc9b80423 push through script printer
discard b41993b60a fix up serialization
discard 0e1070a3de Fix up target
discard 9334b5b30e [FFI] Update cast to be any aware
discard 79db448714 [FFI] minor object error report
discard 37207cd42c upgrade target handling
discard 4590b2c410 [FFI] Add reflection to runtime type index
discard d89bff30d5 [FFI] Improve to ensure array.map have uniqueness
discard 3cfba1d65f work on cpptests, need to visit one case
discard 23f5cefb9d [FFI] Add static_field_type_index here
discard 67f43b2065 [FFI] Add builtin types to dyn type table query
discard 97cc016845 Update test
discard 9b041ff681 fix through printer stmt
discard 261691dade fix target and phase out box value
discard 586d72b833 fix target
discard 9dc9c83c4f upgrade target
discard d743abcd8d upgrade target
discard abd9fc2caa fix logging compact
discard 10f089456e lint
discard a8523ae985 [FFI] Introduce GetGlobalRequired
discard f791973459 Remove backup files
discard a8cc7729e5 wip through error
discard 9d6587a841 [FFI] Traceback consistent with python
discard 1e4f783b6a wip target migration
discard 28f7ba84da WIP error migration
discard b098308b34 [FFI] Make Traceback argument order consistent with
appearance order
discard dbcafe8a55 error hanlding patch
discard b03a1a2697 wip tir-base
discard c99e964e38 lint
discard 7e8a9cfec5 work through base
discard 779d5605f8 [FFI] Introduce RValueRef for object type
discard 7e1527430d Update per latest update
discard 0238a10d92 [FFI] Cleanup the functions in unsafe namespace
discard 0d64e8da28 [FFI] Introduce Tuple support
discard f518e7a00a WIP through arith
discard ef26d28d86 fix dtype type traits
discard fda7d90a64 [FFI] Refactor to formalize container any storage policy
discard 8fc0bce662 Fix primexpr conversion and legacy convert
discard 58b246842f [FFI] Keep Optional<T> only for data structure for now and
use std::optional for as
discard 9f57d0795f change back dataflow expr
discard 0719bf24e0 [FFI] change back to let optional always generate fresh
value for safety
discard 5e0ab2ee05 wip cross check mem safety
discard 68a9fe05b5 [FFI] Remove Any traits for ObjectPtr so it can be kept
internal
discard a10c1d0e40 update wip
discard 8dd4cb3e54 [FFI] lint
discard b30c6ee6c1 update wip
discard da5e4a3478 [FFI] Cleanup Any
discard 4b4b0b491b [FFI] Formalize and adopt Optional throughout the codebase
discard cc4c3fee68 [FFI] Fix traceback with empty filename
discard dad4360d95 Update optional
discard 44d4f083ed [FFI] WIP through optional
discard b546602a2b wip through arith tests
discard 92a75d92dc [FFI] more testcases on function value conversion
discard 850cf11010 [FFI] lint
discard 615eb902c6 [FFI] Add FallbackTypeTraits testcases
discard e6b6a19950 enable primexpr overload
discard 7d70fe403f lint
discard 48ceed7653 [FFI] lint
discard 76aa5292c3 fix wip
discard 6b20bd6d30 [FFI] Add string traits via fallback
discard 88c9b70e16 auto convert int, str, float
discard a57e5efad4 cpplint
discard fec68e806a Fit new dtype API
discard 497d77f1e9 [FFI] Use formal CamelCase
discard 129b28f998 [FFI] minor
discard 1b7629c758 get string correctly
discard 650ca8c71a cpplint
discard 5554f81c79 [FFI] Formal dtype support with clear string conversion
discard 01e67db086 [FFI] Include field accessors
discard 8e4ea05ded Pass compile, now start trying
discard 23718b6ef9 [FFI] Minor recorg
discard ac33776599 Fix python compile
discard 76a9f2980f push through compile
discard a4962da8ec [FFI] minor fix
discard c13f5d0a67 push through tir topi and target
discard f06741ad3b [FFI] Introduce GetTypeKey to any and objectref
discard c92407f2cc [FFI] bugfix optional converstion
discard 6645f08ba1 wip migrate map object to map any
discard e2ee07b68d [FFI] Debug optional
discard 28ce5c0edb push through tir
discard 057364d5c0 [FFI] Update with same_as
discard a8845e0c57 Push through
discard 257017480c push through relax
discard 74b20d3a69 [FFI] leverage std::optional for standard map get api
discard db769bd07a Change through relax and tir
discard 9a2e7be040 [FFI] Add shortcut to the as Node type
discard e0676eb47e [FFI] Fix missing include for optional
discard f4f903a8d2 Move TryAs to as
discard 2f139cd604 [FFI] use std::optional for Object.as to keep things
self-contained
discard 1e3dda486f [FFI] TryAs=>as to be consistent and simpler
discard 6f978c9403 Fix repr
discard 94722b43d5 Enable any print
discard 96945e122c lint
discard da6f329c58 [FFI] lint
discard d46ec7fe8c go through struct hash/equal
discard 8d78d5519c [FFI] Simplify AnyHash
discard 3df958f031 WIP need to move sequal/hash to handle any
discard c956d37e61 Push through serialization
discard c88155d859 [FFI] Add StaticTypeKey
discard 3b22523714 Bulldoze through node
discard 94d180b8b8 lint
discard 6c1545b83e Finish MS, good job
discard 93f2e25e0c push through MS
discard 25976a156b WIP attrs, simplify to map<str, any>
discard 9cceaa5d92 WIP attrs, simplify to map<str, any>
discard 614efa5a4d Redirect to variant
discard b2db033342 Backup variant
discard 765231cdb2 lint
discard e9c3df0f97 [FFI] Add variant support
discard 6767a9a8cc go through env function
discard dbcd16e1df [FFI] allow mutable call to captured functor
discard d30080e280 get through attrs
discard 8e08a8d2cd Remove objectref scaffold to be direct
discard 74fe5a73de node wip
discard 9d3f7a506e run lint
discard 9a5883d9f0 [FFI] lint
discard 3177170df5 Runtime pass
discard b75703ff65 pass through runtime compile
discard 0def3909dc Push through rpc. now on to device module
discard 8faa79ac1b [FFI] Add fwd compact NDArray compact with DLTensor
discard 6ab5c7e4ec wip rpc
discard b62ca56255 push through disco
discard cdc3c06a90 WIP through vm and disco
discard 8c2e5e4c2e wip go through vm
discard 762cff2a40 getting clear path wip through disco now relax vm
discard 991a706618 run clang-format
discard 5a417f22f8 [FFI] clang-format
discard ddfb1017e3 Wip through new PackedArgs ffi
discard 280220a7ca [FFI] Refactor to keep param order args, num_args
discard 7aaff2ac29 wip through relax vm
discard ba719c0d42 wip through relax vm
discard a889e2df81 Go through disco
discard 9124f120ed [FFI] Add Any
discard 5c71019835 Go through disco runtime
discard 86b37a6d12 [FFI] Add more object tests
discard 384ddc37c3 [FFI] Enhance Optional
discard 857f3f38ab cpplint
discard d63bf0c1e8 Finish container
discard 73f0c1f67f cpp lint
discard 6cd5ac2ebb Pass runtime api compile
discard 1f52ec39a5 Make steady progress in runtime
discard a9110d87b2 First stab debug compile pass
discard cb92d88ea5 WIP swap in packed func
discard 4a471fa0d1 [FFI] Enhance raw string to any logic
discard c483bb26b5 [FFI] Enhance Map conversion logic
discard d0cb06e6f9 [FFI] add support for Bytes
discard 382091f7d4 [FFI] Fix up AnyView const convert
discard f07405f2de [FFI] Add support for TypedFunction
discard 640e8f8589 Move in redirects for packedfunc
discard e54747257a Move out packed func for swapping
discard 0ed7efcdb7 Move the containers to backup for swapping
discard 36f44721bd Cleanup cpplint and enhance object, move on to s1
discard 45489fbafe Remove legacy rust map/array support
discard fc58c0d56d Fix libsearch under new ffi folder
discard 285cfa3403 Add ASF headers
discard 224ba51523 fix lint and minor compile
discard 20aafcfdac lint
discard 79289c492e Fix deleter to match latest
discard 46f09e2a08 Pass compile
discard ae679a467f clang format
discard 3295c4f892 pass expr first stab
discard 01c86668ee Pass all runtime
discard 5dfc8dbbe8 pass object and runtime compile
discard 72616badcc Use specific import via using and not do global namespace
discard 733ab6734b pass basic disco session compile
discard 6b8865a6c6 pass ndarray compile
discard 75eba060ba pass packed func compile
discard 5a729ae1eb Fix NDArray compile
discard 05ca912181 Move over container on new object
discard b23ba9a638 First step, pass string compile
discard 28960330b0 CMake links ok
discard ab7acdcb6d [REFACTOR] Migration starting pt
discard 7f6f47e3b9 Fix ffi
discard 8b6a9cd71e [FFI] Enhance the deleter and reflection to be aware of
padding
discard 7df5800b43 Cleanup and focus on the integrated version
discard 85f4a1e5b6 [FFI] bool, device, tensor, raw str
discard fd8fe1a030 [FFI] Initial reflection support
discard 2580e3af5c [FFI] Global function registry
discard 97852a5f14 [FFI] Formalize SafeCall handling
discard 27fa885880 [FFI] Initial map support
discard 2b6caf0709 [FFI] Optional Support
discard e33990a7a5 [FFI] Introduce String support
discard 7d7d7910ca [FFI][REFACTOR] Cleanup naming convention and lint
discard 5f226e4c04 [FFI] Introduce array support
discard 06eeba0e92 [FFI] Improve Any coverage to include ObjectPtr
discard 4c87ec4781 [FFI] Function support
discard 6fa7bafac6 [FFI] Any support
discard 50a1956506 [FFI] Object type hierachy cast and check support
discard 98e5eb8b4b [FFI] Add libbacktrace support
discard 383525131e [FFI] ObjectRef based Error
discard 7039ed86e6 [FFI] Enable ObjectPtr and tests
discard 598bf93aee [FFI] Initial step to create ffi from the original tvm
source
discard 4b39edbbdb [FFI] Initial Code Commit
add 4790798d5d [Install] Fix error during python/tvm installation (#17808)
add 820642b6c4 [Relax] Fix Torch frontends to report all the missing ops
(#17826)
add 4e41b42fa3 [Relax][PyTorch] Support narrow and broadcast_to ops for
ExportedProgram importer (#17830)
add 6bd55f0c90 [Relax][PyTorch] full.default, full_like.default,
ones.default (#17832)
add f1ba5ed5f3 [BugFix][TIR] Schedule support reverse-inline with
reduction blocks (#17838)
add fcb8853603 [Relax] Refactor missing op check into shared utility for
Torch frontends (#17840)
add f08165680e [Relax][PyTorch] Add support for norm op (#17841)
add 1bb7833757 [Relax][PyTorch] Add Logaddexp op support for exported
program (#17803)
add 899e1210a6 fixing incorrect docstring in upsampling.py (#17845)
add 601d570894 [CI] Upgrade ubuntu runner image for GitHub CI (#17846)
add 103e54bf4f [Relax][PyTorch] Add PReLU Op Support for Exported Program
and FX graph (#17816)
add 2abff889af [Relax][Pytorch] Add masked_fill op support in
ExportedProgram (#17850)
add aafb0db251 [Relax][PyTorch] Add RSub Op Support for Exported Program
and FX graph (#17849)
add 982b46c3b3 Fix docstring in batch_to_space_nd and bitpack (#17848)
add ba9f174363 [3rdparty] Bump DLPack to v1.1 for float8/6/4 dtype
supports (#17831)
add c00f52a70d [Relax][PyTorch] Add Stack Op Support for Exported Program
(#17819)
add bf6e101793 [Relax][PyTorch] Add Pad Op Support for Exported Program
and FX graph (#17821)
add 4e36b9b75b [Relax][PyTorch] Add mul_.Tensor, max.default, min.default
and pow.Scalar Op Support into Exported Program Frontend (#17843)
add f41c3b54ba [Relax][PyTorch] Support `leaky_relu_.default` and
`reshape_as.default` in ExportedProgram frontend (#17851)
add 40a16db73e Fix incorrect docstring in topi softmax (#17844)
add 36f2502f00 Add op support for roll op (#17839)
add b3d3a7aef0 [Relax][PyTorch] Add copy_ op support in fxGraph (#17858)
add 111ddf7428 [Relax][PyTorch] Support eye op for ExportedProgram
importer (#17864)
new 4d4bd3dae6 [FFI] Initial Code Commit
new 50ed6a0bc2 [FFI] Initial step to create ffi from the original tvm
source
new e17c0a0383 [FFI] Enable ObjectPtr and tests
new 94b02d7c72 [FFI] ObjectRef based Error
new 38f741b7cd [FFI] Add libbacktrace support
new 3e25f2ed3a [FFI] Object type hierachy cast and check support
new 6c815123a0 [FFI] Any support
new e6fde41006 [FFI] Function support
new 319815dc46 [FFI] Improve Any coverage to include ObjectPtr
new 5acc81dda8 [FFI] Introduce array support
new db494c9ad0 [FFI][REFACTOR] Cleanup naming convention and lint
new f265079113 [FFI] Introduce String support
new 0531d3121c [FFI] Optional Support
new 5fb7fa17f6 [FFI] Initial map support
new b32e595fb1 [FFI] Formalize SafeCall handling
new 27f0c559a9 [FFI] Global function registry
new ffcc3030bf [FFI] Initial reflection support
new 374fe57050 [FFI] bool, device, tensor, raw str
new f8a258d4ac Cleanup and focus on the integrated version
new ad419cfb5d [FFI] Enhance the deleter and reflection to be aware of
padding
new 0d23707481 Fix ffi
new 2dd9b8ef27 [REFACTOR] Migration starting pt
new 6769e29bf3 CMake links ok
new e5316ac3c2 First step, pass string compile
new 88a668c53a Move over container on new object
new 6c6c54d5e3 Fix NDArray compile
new 910485f161 pass packed func compile
new 6a5b553701 pass ndarray compile
new f8fcb4fac2 pass basic disco session compile
new 2a49d28ae7 Use specific import via using and not do global namespace
new dc4ad3d8f7 pass object and runtime compile
new 671b56852c Pass all runtime
new 61be1c1b83 pass expr first stab
new e7a3f2f9a4 clang format
new 6b3e376179 Pass compile
new 02fece3ba4 Fix deleter to match latest
new 533eb2b2b7 lint
new e63813e7c1 fix lint and minor compile
new de7f20de34 Add ASF headers
new e8ba89ad57 Fix libsearch under new ffi folder
new a063e2a84c Remove legacy rust map/array support
new 04d6ef65ab Cleanup cpplint and enhance object, move on to s1
new 8052cc46c9 Move the containers to backup for swapping
new 743f8744d7 Move out packed func for swapping
new 33260ec141 Move in redirects for packedfunc
new fe93172288 [FFI] Add support for TypedFunction
new e7b5cfc0fd [FFI] Fix up AnyView const convert
new 8f46c36645 [FFI] add support for Bytes
new d880534481 [FFI] Enhance Map conversion logic
new fe4869e206 [FFI] Enhance raw string to any logic
new f3614bf66f WIP swap in packed func
new 02a05b68b9 First stab debug compile pass
new 0b9ab2919e Make steady progress in runtime
new 0839188ccc Pass runtime api compile
new 49af8cf026 cpp lint
new 6fe427a8dc Finish container
new 4bd48089e5 cpplint
new 3df07e8275 [FFI] Enhance Optional
new d64c7c564f [FFI] Add more object tests
new 56b62af2b8 Go through disco runtime
new c3ae3c13e6 [FFI] Add Any
new 6a986a3a3e Go through disco
new bceea08f00 wip through relax vm
new cf04c76053 wip through relax vm
new 429b444057 [FFI] Refactor to keep param order args, num_args
new a664b03341 Wip through new PackedArgs ffi
new dfc1b5e38a [FFI] clang-format
new 71f7ac4ea6 run clang-format
new 5570375841 getting clear path wip through disco now relax vm
new aaceaef984 wip go through vm
new faad1f1dc1 WIP through vm and disco
new 83a56e22e2 push through disco
new da5f3fa471 wip rpc
new 7594044252 [FFI] Add fwd compact NDArray compact with DLTensor
new c8bc0d87d7 Push through rpc. now on to device module
new fa3b79b36f pass through runtime compile
new 393103379b Runtime pass
new 0d73769028 [FFI] lint
new 6e81de6cf1 run lint
new 4cdbe3d34e node wip
new 5b102eb65b Remove objectref scaffold to be direct
new 5f6289a6dc get through attrs
new dc231c4598 [FFI] allow mutable call to captured functor
new 202e5b1ec5 go through env function
new b7155566ba [FFI] Add variant support
new 303892cbf0 lint
new 26ff03b4d8 Backup variant
new 65c501393a Redirect to variant
new f216c900de WIP attrs, simplify to map<str, any>
new a8a73c70ae WIP attrs, simplify to map<str, any>
new c6b9d329f9 push through MS
new 413d14255e Finish MS, good job
new a725f57529 lint
new 3a2f0d5acd Bulldoze through node
new b6df7cabf7 [FFI] Add StaticTypeKey
new 285c0fcff7 Push through serialization
new 025b37714d WIP need to move sequal/hash to handle any
new e2f8f25eb7 [FFI] Simplify AnyHash
new b47fa39576 go through struct hash/equal
new f69f3b39d0 [FFI] lint
new a0cd3ad787 lint
new 854ed005da Enable any print
new 101f368af0 Fix repr
new 5d3698772b [FFI] TryAs=>as to be consistent and simpler
new 71102b942a [FFI] use std::optional for Object.as to keep things
self-contained
new 2d3c71ff4e Move TryAs to as
new 529309df33 [FFI] Fix missing include for optional
new 5ce7655e6a [FFI] Add shortcut to the as Node type
new bb889af957 Change through relax and tir
new 95f6f72a58 [FFI] leverage std::optional for standard map get api
new edf3761b91 push through relax
new 2166f72f77 Push through
new e414ff0940 [FFI] Update with same_as
new a9d9b0b17a push through tir
new f1edf2a434 [FFI] Debug optional
new ff7481ab57 wip migrate map object to map any
new 8a910e5e87 [FFI] bugfix optional converstion
new 2c4760a22c [FFI] Introduce GetTypeKey to any and objectref
new f1554efc3b push through tir topi and target
new e33bc46d2f [FFI] minor fix
new aaca879209 push through compile
new a45e69329b Fix python compile
new e84763e53d [FFI] Minor recorg
new f3f5159a07 Pass compile, now start trying
new 6029e31483 [FFI] Include field accessors
new d0131b216c [FFI] Formal dtype support with clear string conversion
new 44987d0d06 cpplint
new 67684629ac get string correctly
new ba0685aa4b [FFI] minor
new d2efb27d4a [FFI] Use formal CamelCase
new 08fb774023 Fit new dtype API
new 949def8aee cpplint
new fcec781914 auto convert int, str, float
new eb26a33438 [FFI] Add string traits via fallback
new ece9a4ff50 fix wip
new b1dd07fc30 [FFI] lint
new 13fc749260 lint
new 325d0e16e7 enable primexpr overload
new c192a3e8e3 [FFI] Add FallbackTypeTraits testcases
new 1399251fbe [FFI] lint
new 7b6803c929 [FFI] more testcases on function value conversion
new 6f20b44a71 wip through arith tests
new aa1d85146e [FFI] WIP through optional
new 4adde1a519 Update optional
new 49772346fb [FFI] Fix traceback with empty filename
new 67dd708bf0 [FFI] Formalize and adopt Optional throughout the codebase
new af6d8a5d4c [FFI] Cleanup Any
new d1a33e077a update wip
new 4fa4e8c06f [FFI] lint
new 9af0b54774 update wip
new 64d95910ee [FFI] Remove Any traits for ObjectPtr so it can be kept
internal
new 879bfd0a72 wip cross check mem safety
new 5dba702c7d [FFI] change back to let optional always generate fresh
value for safety
new 21a9ed8d47 change back dataflow expr
new a2b385c27a [FFI] Keep Optional<T> only for data structure for now and
use std::optional for as
new 164162648d Fix primexpr conversion and legacy convert
new 6ac8366016 [FFI] Refactor to formalize container any storage policy
new 9b8eea7994 fix dtype type traits
new 9a3b455991 WIP through arith
new 8263aefe61 [FFI] Introduce Tuple support
new 154f547c01 [FFI] Cleanup the functions in unsafe namespace
new a81d14ca09 Update per latest update
new 09926d4a3a [FFI] Introduce RValueRef for object type
new 3fadb22436 work through base
new 47e7715a3d lint
new 1801a56f3a wip tir-base
new 715fc430a0 error hanlding patch
new 3cfb2c40ba [FFI] Make Traceback argument order consistent with
appearance order
new fce1445302 WIP error migration
new 3f9d536a1d wip target migration
new 573b5e38ca [FFI] Traceback consistent with python
new e58d806eeb wip through error
new 1f0a73aed8 Remove backup files
new 62252a5f69 [FFI] Introduce GetGlobalRequired
new c8b4c8d60b lint
new 82c9da4bbb fix logging compact
new 0628cacb76 upgrade target
new 4b5a2aba41 upgrade target
new 6964fe0231 fix target
new 72eec8dd5f fix target and phase out box value
new e496dc148b fix through printer stmt
new ef15b3fa1f Update test
new 2bd77a70d5 [FFI] Add builtin types to dyn type table query
new ebfd223d40 [FFI] Add static_field_type_index here
new a3a4c5d701 work on cpptests, need to visit one case
new ccbd6acf25 [FFI] Improve to ensure array.map have uniqueness
new 242cd31a80 [FFI] Add reflection to runtime type index
new 25add584a8 upgrade target handling
new f198f89fb3 [FFI] minor object error report
new f97127a2d6 [FFI] Update cast to be any aware
new 9bcd8f53b3 Fix up target
new 40cbad5189 fix up serialization
new f9a7f51d1a push through script printer
new bc1a0f9d0e fix struct hash/equal
new ce9be5b3d6 Move towards pod attribute in mod and func
new f11e993544 Fix trace
new 4cd2a0fcc8 Fix op registeration
new 6dc03dd227 Fix vk target
new 5acfc9c2bf minor fix
new ba3b9d1c47 BUGfix reflection.cc
new 15f0eff7d0 Fix attribute values for tir-transform
new 2cdef698ce Fix compile, need also update from the ffi side
new 2cd555238b Fix up attr setup
new 870691e197 Fix schedule setup attr
new 38b34c90eb Fix rvalue passing in passes via std::function
new 546779c7d7 Fix for ir tests
new 444085f000 wip through schedule
new b2bb78d2b0 fix schedule bug introduced in refactor
new f17765ea3f [FFI] Support move from any
new fe91fd3053 Fix codegen
new 86a8a28671 Fix save
new be1197efe6 Fix through runtime, rpc wip
new 5adc07f0a7 Fix through rpc
new 57a44a6fc7 lint
new 2187c02cb6 Pass runtime
new efdb051766 Backward compact ms
new 396a0df2a6 Fix MS Getvalue bug
new 79e06a8ddb fix ms replytrace
new aa87ccb880 WIP through MS, some last items
new 158a514539 Fix disco nccl and vm bultin
new 35f00c31f8 Fix through MS
new 65eb1eb220 Fix target
new 8564eff320 Fix tvmscript
new a90f7a3429 WIP through relax
new 7c6e5737e1 Fix relax wip
new 60115c5b65 Dlight minor wip
new 8bb6831880 [FFI] Dtype string conversion to empty string to be
consistent
new c53b4d760f [FFI] Enable general contains check and upcast
new 73ced5977d MS to use any trace
new de9391d8a2 Remove attr normalize and rework tir and script
new 5b55c15130 bugfix relax compiled
new 7bf4c73316 fix vm
new a9382b6fe4 Fix through relax
new 8f3ad0ba69 work through shape lower
new 638cb50876 Move Optional<Integer> to Optional<int64_t>
new 04619ac284 cpplint
new 57332bdb9c Optional int migration finish
new 73046e9293 Fix dynamo
new 14ee4b71b9 Fix full
new 31dc2914b9 fix through fuse ops
new 0fd4cc7ca5 Fix fuse
new 2541de0642 fix topi reduction
new 6a369106d5 fix fuse tir
new 20367af78e fix transform params
new 2e6845815b fix legalize ops
new 208917b910 Fix reflection
new e455f05591 fix memplan
new b1b6ec1658 fix tuning
new dbdfb5377b fix parser
new 0ee932bf37 Fix MS JSON parser
new d2c316ccf9 fix alteroplayout
new 2a40e03ebd fix layout free buffers
new 60c9425571 support legacy export dll
new b3491dc20c cpplint
new 6938375b4d fix onnx
new 1329ff72cb Fix vm codegen only
new a30e00c00d fix instrument
new 92a9069c7b Fix adjust matmul order
new 61e7f4cc3c Fix vm setinput
new 410c917b23 fix te
new 6b8715b7db black
new 79bbd21374 fix msc and cpptests
new 7f934ae39c fix lint
new 431617d8de update contrib
new d014246bac [FFI] minor update
new bd7f045428 fix through web
new eac99abe64 Always return str in ffi
new 6ce4201352 Legacy always returns raw string to keep things simple
new c8c4bf561c [FFI] Move ByteArray to be consistent on 32bit for now
new b77a1e62b9 [FFI] 32bit robustness
new 9ed61f83a4 fix web runtime
new 92fc02bddc Update
new dcc9fe0158 [FFI] 32bit compact
new a573ff5491 minor runtime fix
new b396271b02 lint
new f3e5ea2dd8 fix contrib items
new edd2dc51ee [FFI] clarify enabled into two categories
new 3c4163cb68 lint
new 4f0fd6d989 [FFI] Fix backtrace when symbol needs to be detected from
env
new 2323a0ae81 [FFI] Add up more object info
new a905de7858 fix load params
new 3700bd916b [FFI] consistent header size and alignment across platforms
new 8c7adb4565 Fixup MS to ensure concrete value
new 6c5d683b35 [FFI] reverts DLtensor align assert
new 52295a39d5 add handle add by byteoffset
new 5a587eb1e9 [CODEGEN] TVMFFIAny support in struct get/set/alloca
new 7b36f05f96 [CODEGEN] handle_byte_offset
new 2c73750dcc Fix MS trace
new b59807255c pylint
new 96117f86d3 skip msc plugin
new e4ef86d9cc [FFI] Fix flag
new a69cdcec66 Fix hexagon flags
new 3eb5384117 Fix hexagon build
new 9307b2a21a fix lin and MS
new 300b385434 [FFI] Enhance FFI error handling
new 31a7c7edd5 Upragde codegen callee side PackedAPI to use the latest FFI
ABI
new 35db35c04e Upgrade the caller side of ABI to make use of the latest FII
new dfa9fe0030 Upgrade error reporting mechanism ABI to new FFI.
new a4f4d7182d [FFI] upgrade dlpack to v1.1
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 (aa7b897f29)
\
N -- N -- N refs/heads/refactor-s2 (a4f4d7182d)
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 299 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:
.github/workflows/main.yml | 4 +-
.github/workflows/nightly_docker_update.yml | 2 +-
.github/workflows/ping_reviewers.yml | 2 +-
.github/workflows/tvmbot.yml | 2 +-
.../workflows/update_last_successful_branch.yml | 2 +-
.github/workflows/update_nightly_branch.yml | 2 +-
.github/workflows/upload_ci_resource.yml | 2 +-
3rdparty/dlpack | 2 +-
ffi/3rdparty/dlpack | 2 +-
include/tvm/relax/attrs/manipulate.h | 13 +
include/tvm/relax/attrs/nn.h | 9 +
include/tvm/runtime/data_type.h | 16 +-
include/tvm/tir/op.h | 11 +
include/tvm/topi/broadcast.h | 16 +
python/setup.py | 8 +-
python/tvm/_ffi/libinfo.py | 14 +-
python/tvm/_ffi/runtime_ctypes.py | 14 +-
python/tvm/relax/frontend/nn/op.py | 28 +
.../frontend/torch/base_fx_graph_translator.py | 246 ++++++++-
.../frontend/torch/exported_program_translator.py | 35 +-
python/tvm/relax/frontend/torch/fx_translator.py | 75 +--
python/tvm/relax/op/__init__.py | 2 +
python/tvm/relax/op/binary.py | 19 +
python/tvm/relax/op/manipulate.py | 24 +
python/tvm/relax/op/nn/__init__.py | 1 +
python/tvm/relax/op/nn/nn.py | 41 +-
python/tvm/relax/op/op_attrs.py | 5 +
python/tvm/relax/transform/legalize_ops/binary.py | 1 +
.../tvm/relax/transform/legalize_ops/manipulate.py | 22 +
python/tvm/relax/transform/legalize_ops/nn.py | 36 +-
python/tvm/script/ir_builder/relax/ir.py | 4 +
python/tvm/te/__init__.py | 2 +-
python/tvm/tir/__init__.py | 2 +-
python/tvm/tir/op.py | 22 +
python/tvm/topi/broadcast.py | 19 +
python/tvm/topi/nn/batch_to_space_nd.py | 2 +-
python/tvm/topi/nn/bitserial_util.py | 8 +
python/tvm/topi/nn/elemwise.py | 3 +
python/tvm/topi/nn/pad.py | 174 ++++++-
python/tvm/topi/nn/softmax.py | 9 +-
python/tvm/topi/nn/upsampling.py | 4 +-
python/tvm/topi/transform.py | 16 +-
src/contrib/msc/framework/torch/torch_opcode.cc | 8 +
src/relax/op/nn/nn.cc | 21 +
src/relax/op/nn/nn.h | 3 +
src/relax/op/tensor/binary.cc | 1 +
src/relax/op/tensor/binary.h | 3 +
src/relax/op/tensor/manipulate.cc | 209 ++++++++
src/relax/op/tensor/manipulate.h | 8 +-
src/tir/op/op.cc | 10 +
src/tir/schedule/primitive/compute_inline.cc | 28 +-
src/topi/broadcast.cc | 1 +
tests/python/contrib/test_msc/test_graph_build.py | 134 ++---
tests/python/relax/test_from_exported_to_cuda.py | 48 ++
.../relax/test_frontend_from_exported_program.py | 561 +++++++++++++++++++++
tests/python/relax/test_frontend_from_fx.py | 449 ++++++++++++++++-
tests/python/relax/test_frontend_nn_op.py | 2 +
tests/python/relax/test_op_nn.py | 4 +
.../test_tir_schedule_compute_inline.py | 49 ++
59 files changed, 2263 insertions(+), 197 deletions(-)