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

method not found in SessionBuilder #79

Closed
hecmay opened this issue Aug 20, 2023 · 1 comment
Closed

method not found in SessionBuilder #79

hecmay opened this issue Aug 20, 2023 · 1 comment

Comments

@hecmay
Copy link

hecmay commented Aug 20, 2023

The GPT example is not runnable =

$ cargo run --example gpt
   Compiling ort v1.15.2 (/Users/hecmay/Desktop/libauto-rs/ort)
error[E0599]: no method named `with_model_downloaded` found for struct `SessionBuilder` in the current scope
  --> examples/gpt.rs:30:4
   |
27 |       let session = SessionBuilder::new(&environment)?
   |  ___________________-
28 | |         .with_optimization_level(GraphOptimizationLevel::Level1)?
29 | |         .with_intra_threads(1)?
30 | |         .with_model_downloaded(GPT2::GPT2LmHead)?;
   | |         -^^^^^^^^^^^^^^^^^^^^^ method not found in `SessionBuilder`
   | |_________|
   | 

For more information about this error, try `rustc --explain E0599`.
error: could not compile `ort` (example "gpt") due to previous error
@decahedron1
Copy link
Member

cargo run --example gpt --features fetch-models

Sorry, I should make this more clear in the docs.

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