blob: 259a0793257fca8fac8e5d91ef8aba220631104b [file] [log] [blame]
from tools.codegen.model import *
from tools.codegen.api.types import *
# Follows dispatcher calling convention, but:
# - Mutable arguments not allowed. Meta functions are always
# written in functional form. Look at FunctionSchema.signature()
# - No tensor returns; instead we return a TensorMeta describing
# the tensor in question
def name(g: StructuredNativeFunctions) -> str:
# use the overload name from the functional version
return str(g.functional.func.name).replace('.', '_')