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

   This PR added a pass `LiftTransformParams`. It allows to compile the 
end-to-end model without weights provided. The idea is annotate the input 
parameters that are weights, and identify and lift the transformations to 
weights, and compile it to a separate function `transform_params` that can be 
executed in runtime. Users can run `transform_params` with weights to get the 
weights for the optimized model as a prep step before the deployment. In this 
way, we perform the same optimizations and defer the weight transformations to 
the user side, while the overhead of the deferred weight transformation can be 
ignored as it only need to be run once.
   
   This pass is integrated with the default `vm.build`. It is optional and only 
necessary when the parameters are kept as inputs when importing the model from 
the frontend.
   
   cc @tqchen @jinhongyii @spectrometerHBH @MasterJH5574 


-- 
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