pub struct ConversionReport {
pub path: ConversionPath,
pub source_inspection: InspectionReport,
pub target_inspection: InspectionReport,
pub warnings: Vec<String>,
pub duration_ms: u64,
pub modified_tensors: Vec<String>,
pub dropped_tensors: Vec<String>,
}Expand description
Report from a conversion operation
Fields§
§path: ConversionPathConversion path taken
source_inspection: InspectionReportSource file inspection
target_inspection: InspectionReportTarget file inspection (after conversion)
warnings: Vec<String>Warnings during conversion
duration_ms: u64Conversion time in milliseconds
modified_tensors: Vec<String>Tensors that were modified
dropped_tensors: Vec<String>Tensors that were dropped
Implementations§
Source§impl ConversionReport
impl ConversionReport
Sourcepub fn is_lossless(&self) -> bool
pub fn is_lossless(&self) -> bool
Check if conversion preserved all tensors
Sourcepub fn tensor_counts_match(&self) -> bool
pub fn tensor_counts_match(&self) -> bool
Check if tensor counts match
Trait Implementations§
Source§impl Clone for ConversionReport
impl Clone for ConversionReport
Source§fn clone(&self) -> ConversionReport
fn clone(&self) -> ConversionReport
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 ConversionReport
impl RefUnwindSafe for ConversionReport
impl Send for ConversionReport
impl Sync for ConversionReport
impl Unpin for ConversionReport
impl UnsafeUnpin for ConversionReport
impl UnwindSafe for ConversionReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more