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

Does method_meta exist in python runtime api? #7709

Open
bluejack opened this issue Jan 16, 2025 · 0 comments
Open

Does method_meta exist in python runtime api? #7709

bluejack opened this issue Jan 16, 2025 · 0 comments

Comments

@bluejack
Copy link

bluejack commented Jan 16, 2025

📚 The doc issue

This python code does not work, but the api reference suggests it should?

et_runtime: Runtime = Runtime.get()
program: Program = et_runtime.load_program(
    Path("text_model.pte"),
    verification=Verification.InternalConsistency,
)
print("Program methods:", program.method_names)
forward: Method = program.load_method("forward")

methmeta: MethodMeta = program.method_meta("forward")

Looking at https://pytorch.org/executorch/stable/executorch-runtime-api-reference.html#_CPPv4NK10executorch7runtime7Program11method_metaEPKc

Although that looks to be the C++ api documentation, not the python documentation, but I don't see separate pythong documentation for the API...

Suggest a potential alternative/fix

Clarify where things are or are not available in the python api, or have a python specific api.

Also, is there some means by which this call can be accessed in python?

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

1 participant