pub struct PrintOptions {
pub indent: String,
pub weight_shapes_only: bool,
pub doc_strings: bool,
}Expand description
Options controlling textual output (ONNX_RS §5.4 PrintOptions).
Fields§
§indent: StringIndentation unit for one nesting level (default " ").
weight_shapes_only: boolEmit a // initializers reference block listing weight name + type
(never the data). Default true.
doc_strings: boolEmit doc_strings as trailing // comments. Default false.
Trait Implementations§
Source§impl Clone for PrintOptions
impl Clone for PrintOptions
Source§fn clone(&self) -> PrintOptions
fn clone(&self) -> PrintOptions
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 moreSource§impl Debug for PrintOptions
impl Debug for PrintOptions
Auto Trait Implementations§
impl Freeze for PrintOptions
impl RefUnwindSafe for PrintOptions
impl Send for PrintOptions
impl Sync for PrintOptions
impl Unpin for PrintOptions
impl UnsafeUnpin for PrintOptions
impl UnwindSafe for PrintOptions
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