sdalvi-quic opened a new pull request, #15614:
URL: https://github.com/apache/tvm/pull/15614

   **Motivation** : Unary ops calculate the value during runtime which is 
costly. Since we are handling quantized data hence, it is better to pre compute 
the value during compile time (for 0 -256 value) and store in a Look Up Table 
which is accessed during the runtime. 
   
   **Implementation** : This pass generates the Look Up Table for each unary op 
during compile time. It iterates over the original graph and replaces the unary 
ops call node, (example tanh, sqrt) to a call node that accesses a Look Up 
Table corresponding to the unary op, and return the value. 
   
   **Testing** : The test_take checks for both value correctness and structural 
correctness of the output generated after the pass. 


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