tvm_tirx.tirx.renew_def

Contents

tvm_tirx.tirx.renew_def#

tvm_tirx.tirx.renew_def(func)#

Renew variable definitions and remap their uses in a function.

Definition regions follow the registered structural hooks. Free variables and function attributes are preserved, and the function signature is rebuilt.

Parameters:

func (Function) – The function to renew.

Returns:

Function – The function with fresh variable definitions.

Return type:

Function