I have simple example for decorator usage which is straightforward to understand:
Do I see it is calling previously defined decorator function called triton.autotune?
def print_fcn_name(func):
def wrapper():
print("Something is happening before the function is called.")
func()
print("Something is happening after the function is called.")
return wrapper
@print_fcn_name
def f1():
print("this is f1...")
f1()But I am seeing what seems usage other than decorator, for example, following statement I just can not get it:Do I see it is calling previously defined decorator function called triton.autotune?
@triton.autotune(
configs=[
<data definitions1>
] if torch.version.hip is None else [
<data definitions2>
],
key=['M', 'N', 'K'],
)
buran write Oct-12-2023, 09:02 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
