We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b2009c commit 3ceac86Copy full SHA for 3ceac86
tensorflow-sys-runtime/src/runtime.rs
@@ -16,14 +16,12 @@ macro_rules! link {
16
// Wrap the loaded functions.
17
pub(crate) struct SharedLibrary {
18
library: libloading::Library,
19
- path: PathBuf,
20
pub functions: Functions,
21
}
22
impl SharedLibrary {
23
- fn new(library: libloading::Library, path: PathBuf) -> Self {
+ fn new(library: libloading::Library) -> Self {
24
Self {
25
library,
26
- path,
27
functions: Functions::default(),
28
29
@@ -95,7 +93,7 @@ macro_rules! link {
95
93
)
96
94
});
97
98
- let mut library = SharedLibrary::new(library?, path);
+ let mut library = SharedLibrary::new(library?);
99
$(load::$name(&mut library);)+
100
Ok(library)
101
0 commit comments