examples(model-info): update

should really be checking these in CI...
This commit is contained in:
Carson M.
2025-09-09 10:35:59 -05:00
parent 65df5826cc
commit e169561d42

View File

@@ -19,13 +19,13 @@ fn main() -> ort::Result<()> {
let session = Session::builder()?.commit_from_file(path)?;
let meta = session.metadata()?;
if let Ok(x) = meta.name() {
if let Some(x) = meta.name() {
println!("Name: {x}");
}
if let Ok(x) = meta.description() {
if let Some(x) = meta.description() {
println!("Description: {x}");
}
if let Ok(x) = meta.producer() {
if let Some(x) = meta.producer() {
println!("Produced by {x}");
}