Lunderberg opened a new pull request, #14248: URL: https://github.com/apache/tvm/pull/14248
Previously, type-checking of a callable arguments, such as to `tvm.ir.transform.module_pass`, was done using `isinstance(arg, (types.FunctionType, types.LambdaType))`. This check can give false negatives for valid python types, such as a bound method or an instance of a class that implements `__call__`. This commit replaces the checks with the builtin function `callable()`, which handles any Python object that can be called using function-like syntax. -- 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]
