[Unity] Allocate workspace for all functions#15118
Conversation
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.
Generated by tvm-bot |
|
This assumes that all entry functions get the same workspace size right? I also have a WIP branch https://github.com/masahi/tvm/tree/workspace-provider-entry-func that calculates the minimum-necessary workspace size for each function that calls another functions with So the upshot is, even though different entry funcs can have its own minimum workspace size, to handle the case above we need to take the max over all functions with Do you agree with my assessment? @yelite |
|
@masahi I think what you described is ideal and the workspace param can be made as |
masahi
left a comment
There was a problem hiding this comment.
R.Object sounds like a good solution. For now this patch should be fine.
Allocate workspace for all functions
This PR makes
AllocateWorkspaceallocate workspace in all Relax functions that doesn't haveCodegenorCompositeattributes.cc @masahi