You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Relax] Memory planning for "partially dynamic" shapes (#16466)
This PR improves the memory planning to plan for tensors
with shape such as `(m, n)` where only `m` has an integer
upper bound (say `m <= 20`).
Prior to this PR, the tensor is not planned even though
`m` has an upper bound. This is not as ideal since it
does not fully leverage the upper bound info.
This PR enhances the planning, so that a memory chunk
of `20 * n` will be allocated first, and the tensor
will then be allocated out from this chunk. This enables
us to fully leverage the upper bound info.
A unit test is provided.
0 commit comments