pub fn dump_t<D: Datum>(&self, force_full: bool) -> TractResult<String> {
        use itertools::Itertools;
        let spec = TensorFact::dt_shape(D::datum_type(), &*self.shape);
        let data = self.to_array_view::<D>()?;
        let s = if force_full || data.len() <= 12 {
            format!("{} {}", spec.format_dt_shape(), data.iter().join(", "))
        } else {
            format!("{} {}...", spec.format_dt_shape(), data.iter().take(8).join(", "))
        };
        Ok(s)
    }
/// Dump the tensor in a human readable form.
///
/// `force_full` will force the tensor to be dump in full even if it is big.
Dump the tensor in a human readable form.
`force_full` will force the tensor to be dump in full even if it is big.
Dump the tensor in a human readable form . ` force_full ` will force the tensor to be dump in full even if it is big .
pub fn dump_t<D: Datum>(&self, force_full: bool) -> TractResult<String> {
        use itertools::Itertools;
        let spec = TensorFact::dt_shape(D::datum_type(), &*self.shape);
        let data = self.to_array_view::<D>()?;
        let s = if force_full || data.len() <= 12 {
            format!("{} {}", spec.format_dt_shape(), data.iter().join(", "))
        } else {
            format!("{} {}...", spec.format_dt_shape(), data.iter().take(8).join(", "))
        };
        Ok(s)
    }
pub fn dump_t < D : Datum > ( & self , force_full : bool ) -> TractResult < String > { use itertools :: Itertools ; let spec = TensorFact :: dt_shape ( D :: datum_type ( ) , & * self . shape ) ; let data = self . to_array_view :: < D > ( ) ? ; let s = if force_full || data . len ( ) <= 12 { format ! ( " " spec format_dt_shape ( ) data iter ( ) join ( " " ) ) } else { format ! ( " " spec format_dt_shape ( ) data iter ( ) take ( 8 ) join ( " " ) ) } ; Ok ( s ) }
Dump the tensor in a human readable form.
Dump the tensor in a human readable form .
&self
force_full
bool
&self
force_full
bool