Skip to content

Commit

Permalink
feat: warn when registering execution provider without feature
Browse files Browse the repository at this point in the history
decahedron1 committed Apr 12, 2023
1 parent e23773f commit d4b9972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/execution_providers.rs
Original file line number Diff line number Diff line change
@@ -290,7 +290,9 @@ pub(crate) fn apply_execution_providers(options: *mut sys::OrtSessionOptions, ex
continue; // EP found
}
}
_ => {}
ep => {
tracing::warn!("`ort` was not compiled to enable {ep} - you may be missing a Cargo feature to enable it.");
}
};
}
}

0 comments on commit d4b9972

Please sign in to comment.