manupa-arm commented on a change in pull request #10599:
URL: https://github.com/apache/tvm/pull/10599#discussion_r828318700



##########
File path: python/tvm/relay/backend/contrib/ethosu/util.py
##########
@@ -313,3 +318,37 @@ def __init__(
             encoded_constants,
             base_addresses,
         )
+
+
+def npu_pass(opt_level: int, name: str = ""):

Review comment:
       I think that is the definition of the function pass.
   See here : 
https://github.com/apache/tvm/blob/d4739eb80662a71781c46095dc2f3e1903b94f8c/src/relay/ir/transform.cc#L104-L105
   
   So all passes are IRModule --> IRModule transformations (at least we should 
try to make them be :) )
   
   Function pass is the one that mutates at function level but return the whole 
IRModule.




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