INNER CODE UNIT · Rust
default
tensorflow/rust · src/lib.rs:80
fn default() -> Self {
Self::new()
}
}
impl $name {
#[doc = $doc]
pub fn new() -> Self {
unsafe {
let inner = tf::$call();
assert!(!inner.is_null());
$name { inner }
}
}
}
};
}