We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe. At
cutlass/python/cutlass/epilogue/epilogue.py
Line 117 in 5e49724
the trace(..) API takes in a function. The main issue here is that when dynamically defining a python function like so
trace(..)
fn = exec(""" def fn(x): return x """
extracting the source using inspect.getsource here fails.
inspect.getsource
This is how inductor generates the python source in essence (it generates a function string) so this does signature doesn't work.
Describe the solution you'd like Modify the signature of trace to take the function source string directly.
cc @henrylhtsang, @eellison
The text was updated successfully, but these errors were encountered:
@jackkosaian
Sorry, something went wrong.
@apuaaChen, can you help take a look at this EVT request?
No branches or pull requests
Is your feature request related to a problem? Please describe.
At
cutlass/python/cutlass/epilogue/epilogue.py
Line 117 in 5e49724
the
trace(..)
API takes in a function. The main issue here is that when dynamically defining a python function like soextracting the source using
inspect.getsource
here fails.This is how inductor generates the python source in essence (it generates a function string) so this does signature doesn't work.
Describe the solution you'd like
Modify the signature of trace to take the function source string directly.
cc @henrylhtsang, @eellison
The text was updated successfully, but these errors were encountered: