pub struct TorchScriptExportOptions {
pub include_types: bool,
pub include_comments: bool,
pub optimize_for_inference: bool,
}Expand description
Export options for TorchScript format.
Fields§
§include_types: boolInclude type annotations
include_comments: boolInclude comments
optimize_for_inference: boolOptimize for inference (freeze parameters)
Trait Implementations§
Source§impl Clone for TorchScriptExportOptions
impl Clone for TorchScriptExportOptions
Source§fn clone(&self) -> TorchScriptExportOptions
fn clone(&self) -> TorchScriptExportOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TorchScriptExportOptions
impl Debug for TorchScriptExportOptions
Auto Trait Implementations§
impl Freeze for TorchScriptExportOptions
impl RefUnwindSafe for TorchScriptExportOptions
impl Send for TorchScriptExportOptions
impl Sync for TorchScriptExportOptions
impl Unpin for TorchScriptExportOptions
impl UnwindSafe for TorchScriptExportOptions
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