rkimball opened a new pull request, #12664:
URL: https://github.com/apache/tvm/pull/12664

   This PR adds methods to both get and set late-bound constants.
   
   The current approach for saving and restoring a model's late-bound constants 
is via the either `MoveLateBoundConstantsToFile` and then this file can be 
reloaded to the Executable by calling `LoadLateBoundConstantsFromFile`. These 
methods save the constants to a file `consts`.
   
   I have a need to save and restore the constants in a pre-existing format. In 
order to write these I added `GetLateBoundConstants`  which returns a Map of 
all late-bound contants. To restore the constants back to the Executable 
`LoadLateBoundConstantsFromMap` was added.
   
   The PR arranges the code so that both `GetLateBoundConstants` and 
`LoadLateBoundConstantsFromMap` are used in the existing methods to write and 
read late-bound constants. This means there is minimal code change, functions 
were mostly just rearranged to expose the two new entry points.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to