#[repr(i32)]pub enum NetworkDefinitionCreationFlag {
kSTRONGLY_TYPED = 0,
}Expand description
NetworkDefinitionCreationFlag
List of immutable network properties expressed at network creation time. NetworkDefinitionCreationFlag is used with createNetworkV2() to specify immutable properties of the network.
See [IBuilder::createNetworkV2]
Variants§
kSTRONGLY_TYPED = 0
Mark the network to be strongly typed. Every tensor in the network has a data type defined in the network following only type inference rules and the inputs/operator annotations. Setting layer precision and layer output types is not allowed, and the network output types will be inferred based on the input types and the type inference rules.
Deprecated in TensorRT 11.0. Strongly typed mode is always enabled. This flag is retained for API compatibility but is ignored.
Trait Implementations§
Source§impl Clone for NetworkDefinitionCreationFlag
impl Clone for NetworkDefinitionCreationFlag
Source§fn clone(&self) -> NetworkDefinitionCreationFlag
fn clone(&self) -> NetworkDefinitionCreationFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for NetworkDefinitionCreationFlag
Source§impl Hash for NetworkDefinitionCreationFlag
impl Hash for NetworkDefinitionCreationFlag
Source§impl PartialEq for NetworkDefinitionCreationFlag
impl PartialEq for NetworkDefinitionCreationFlag
Source§fn eq(&self, other: &NetworkDefinitionCreationFlag) -> bool
fn eq(&self, other: &NetworkDefinitionCreationFlag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkDefinitionCreationFlag
impl UniquePtrTarget for NetworkDefinitionCreationFlag
impl VectorElement for NetworkDefinitionCreationFlag
impl WeakPtrTarget for NetworkDefinitionCreationFlag
Auto Trait Implementations§
impl Freeze for NetworkDefinitionCreationFlag
impl RefUnwindSafe for NetworkDefinitionCreationFlag
impl Send for NetworkDefinitionCreationFlag
impl Sync for NetworkDefinitionCreationFlag
impl Unpin for NetworkDefinitionCreationFlag
impl UnsafeUnpin for NetworkDefinitionCreationFlag
impl UnwindSafe for NetworkDefinitionCreationFlag
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