pub enum NetworkSource {
Onnx(Vec<u8>),
SerializedPlan(Vec<u8>),
}Expand description
Network description for TrtMsg::Build. The builder API has
many entry points; for now we accept either a serialised ONNX blob
(under tensorrt-onnx) or a precompiled TensorRT plan to import.
Variants§
Onnx(Vec<u8>)
Raw ONNX bytes. Requires the tensorrt-onnx feature.
SerializedPlan(Vec<u8>)
A previously serialised TensorRT plan; just deserialise.
Trait Implementations§
Source§impl Clone for NetworkSource
impl Clone for NetworkSource
Source§fn clone(&self) -> NetworkSource
fn clone(&self) -> NetworkSource
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 moreAuto Trait Implementations§
impl Freeze for NetworkSource
impl RefUnwindSafe for NetworkSource
impl Send for NetworkSource
impl Sync for NetworkSource
impl Unpin for NetworkSource
impl UnsafeUnpin for NetworkSource
impl UnwindSafe for NetworkSource
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