INNER CODE UNIT · Rust

new

tensorflow/rust · src/lib.rs:87

            pub fn new() -> Self {
                unsafe {
                    let inner = tf::$call();
                    assert!(!inner.is_null());
                    $name { inner }
                }
            }
        }
    };
}

////////////////////////

macro_rules! impl_drop {
    ($name: ident, $call:ident) => {
        impl Drop for $name {
            fn drop(&mut self) {
                unsafe {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…