Skip to content
New issue

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

How to circumvent the error "function_name: Already defined" under @script() decorator. #1961

Open
tuanle0910 opened this issue Nov 22, 2024 · 1 comment

Comments

@tuanle0910
Copy link

Hi everyone, is there a way for us to create a dynamic name of our function under @script decorator? Or at the very least, how do we remove the function that was called once under @script. Currently, I kept bumping into the weird message "function_name: Already defined" if I execute it once under @script.

Example.

from onnxscript import script

@script()
def function_name([arguments list):
      do something
@titaiwangms
Copy link
Contributor

@gramalingam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants