Struct async_tensorrt::ffi::network::NetworkDefinition
source · pub struct NetworkDefinition { /* private fields */ }
Expand description
A network definition for input to the builder.
Implementations§
source§impl NetworkDefinition
impl NetworkDefinition
sourcepub fn num_inputs(&self) -> usize
pub fn num_inputs(&self) -> usize
Get number of inputs.
sourcepub fn num_outputs(&self) -> usize
pub fn num_outputs(&self) -> usize
Get number of outputs.
sourcepub fn as_mut_ptr(&mut self) -> *mut c_void
pub fn as_mut_ptr(&mut self) -> *mut c_void
Get internal mutable pointer.
Trait Implementations§
source§impl Drop for NetworkDefinition
impl Drop for NetworkDefinition
impl Send for NetworkDefinition
Implements Send
for NetworkDefinition
.
Safety
The TensorRT API is thread-safe with regards to all operations on NetworkDefinition
.
impl Sync for NetworkDefinition
Implements Sync
for NetworkDefinition
.
Safety
The TensorRT API is thread-safe with regards to all operations on NetworkDefinition
.
Auto Trait Implementations§
impl RefUnwindSafe for NetworkDefinition
impl Unpin for NetworkDefinition
impl UnwindSafe for NetworkDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more