[Relay][VM] Memory planner (part 1) (#5144)
* Start on memory planning
WIP
Move to test_memory_passes.py
Work on memory planning
Post-rebase and VM changes
Plumb through the offsets
Basic tests all pass, fix offset to data buffer.
Fix compile errors
Fix ws
Apply suggestions from code review
Co-Authored-By: Haichen Shen <shenhaichen@gmail.com>
Address CR
Update src/runtime/vm/vm.cc
Co-Authored-By: Haichen Shen <shenhaichen@gmail.com>
Fix another comment
Fix lint
Fix
Fix
Fix
Lint is done?
Fix
More fix
Trying to debug
No clue
Fix lint
* Fix docs
* Disable aggressive constant eval
* It works
* Fix lint
* Found issue with dynamic
* Fix the pass, but runtime segfaults
* fix scalar tensor, test_any_elemwise passes
* Fix split pass
* Fix 0-rank issues
* Fix
* debug
* apply Haichen's patch and clean up
* lintgit add .
* fix serializer and test_tyck_alloc_tensor test
* Fix the constant lift pass in presence of closures
* Restore old finder
* Fix rebase issues
* Fix
* Fix
* Fix issue coercing the shapes incorrectly from i64 to i32
* Fix linting
* Fix clang format
* Format memory.cc
* Fix 0-rank case
* Add fix for (0,) shape
* Ignore shapes for now
* Apply suggestions from code review
Co-authored-by: Zhi <5145158+zhiics@users.noreply.github.com>
* Update src/runtime/vm/executable.cc
Co-authored-by: Zhi <5145158+zhiics@users.noreply.github.com>
* Fix
* lint
Co-authored-by: Zhi Chen <chzhi@amazon.com>
Co-authored-by: Zhi <5145158+zhiics@users.noreply.github.com>
16 files changed: