tensorflow_sys_runtime/
lib.rs

1#![allow(non_camel_case_types)]
2#![allow(non_snake_case)]
3#![allow(non_upper_case_globals)]
4include!("c_api.rs");
5include!("types.rs");
6include!("finder.rs");
7pub use crate::TF_AttrType::*;
8pub use crate::TF_Code::*;
9pub use crate::TF_DataType::*;
10
11pub mod library {
12    use std::path::PathBuf;
13
14    // Include the definition of `load` here. This allows hiding all of the "extra" linking-related
15    // functions in the same place, without polluting the top-level namespace (which should only
16    // contain foreign functions and types).
17    #[doc(inline)]
18    pub use super::load;
19
20    pub fn find() -> Option<PathBuf> {
21        super::find("tensorflow")
22    }
23}