mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
examples(model-info): update
should really be checking these in CI...
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user