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

Split Rust code between CLI and library #406

Merged
merged 8 commits into from
Apr 18, 2024
Merged

Split Rust code between CLI and library #406

merged 8 commits into from
Apr 18, 2024

Conversation

ia0
Copy link
Member

@ia0 ia0 commented Apr 12, 2024

Also use the latest release candidate of the ORT library, which provides async inference. The CLI now creates only one session and shares it between the different inference tasks.

This also implements the features extraction reference tests.

@ia0 ia0 added the rust Pull requests that update Rust code label Apr 12, 2024
@ia0 ia0 requested review from invernizzi and reyammer April 12, 2024 15:31
@ia0 ia0 merged commit 8214e03 into google:main Apr 18, 2024
35 checks passed
@ia0 ia0 deleted the split branch April 18, 2024 09:28
labels.entry(target).or_default().push(label);
}
let labels = labels;
let mut output = File::create("../lib/src/label.rs")?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment explaining why dynamically generating this file is necessary (or add it to the README.md of this directory)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a line mentioning that this is generated by the gen crate. It should help code wanderers to figure things out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants