Skip to main content

export_discovered_runtime

Function export_discovered_runtime 

Source
pub fn export_discovered_runtime(
    extra_dirs: impl IntoIterator<Item = PathBuf>,
) -> Option<PathBuf>
Expand description

Export a discovered runtime to this process: set ORT_DYLIB_PATH unless already set and prepend its directory to PATH so dependent libraries load. Returns the runtime path now in effect. Call single-threaded, before ORT use.