python/tvm/relay/transform.py
def create_module_pass(pass_func):
        """Internal function that creates a module pass"""
        if not isinstance(pass_func, (types.FunctionType, types.LambdaType)):
            raise TypeError("pass_func must be a callable for Module pass")

        fname = name if name else pass_func.__name__
        info = PassInfo(opt_level, fname, required)
        return _transform.MakeModulePass(pass_func, info)
Internal function that creates a module pass
Internal function that creates a module pass
Internal function that creates a module pass
def create_module_pass(pass_func):
        if not isinstance(pass_func, (types.FunctionType, types.LambdaType)):
            raise TypeError("pass_func must be a callable for Module pass")
        fname = name if name else pass_func.__name__
        info = PassInfo(opt_level, fname, required)
        return _transform.MakeModulePass(pass_func, info)
def create_module_pass ( pass_func ) : if not isinstance ( pass_func , ( types . FunctionType , types . LambdaType ) ) : raise TypeError ( "pass_func must be a callable for Module pass" ) fname = name if name else pass_func . __name__ info = PassInfo ( opt_level , fname , required ) return _transform . MakeModulePass ( pass_func , info )
Internal function that creates a module pass
Internal function that creates a module pass
"""Internal function that creates a module pass"""
pass_func