pub struct ConvertReport {
pub ops_converted: usize,
pub ops_unchanged: usize,
pub ops_decomposed: usize,
pub ops_rejected: usize,
pub ops_incompatible: Vec<IncompatibleOp>,
pub messages: Vec<String>,
pub source_opset: u32,
pub target_opset: u32,
}Expand description
Summary of a conversion attempt.
Conversion is transactional: when ops_rejected is non-zero, the model is
left unchanged and the rejected nodes explain which adapters are missing.
Fields§
§ops_converted: usizeNodes rewritten in place.
ops_unchanged: usizeNodes proven compatible without a rewrite.
ops_decomposed: usizeNodes replaced by adapter-provided subgraphs.
ops_rejected: usizeNodes that could not be converted.
ops_incompatible: Vec<IncompatibleOp>Details for rejected nodes.
messages: Vec<String>Human-readable conversion diagnostics.
source_opset: u32§target_opset: u32Trait Implementations§
Source§impl Clone for ConvertReport
impl Clone for ConvertReport
Source§fn clone(&self) -> ConvertReport
fn clone(&self) -> ConvertReport
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 ConvertReport
impl Debug for ConvertReport
Source§impl Default for ConvertReport
impl Default for ConvertReport
Source§fn default() -> ConvertReport
fn default() -> ConvertReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConvertReport
impl RefUnwindSafe for ConvertReport
impl Send for ConvertReport
impl Sync for ConvertReport
impl Unpin for ConvertReport
impl UnsafeUnpin for ConvertReport
impl UnwindSafe for ConvertReport
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