pub fn as_ptr<D: Datum>(&self) -> TractResult<*const D> {
        if self.datum_type() != D::datum_type() {
            bail!(
                "Incompatible datum type. Required {:?}, got {:?}",
                D::datum_type(),
                self.datum_type()
            );
        }
        if self.is_null() {
            bail!("Null tensor")
        }
        Ok(self.data.as_ptr() as *const D)
    }
/// Access the data as a pointer.
Access the data as a pointer.
Access the data as a pointer .
pub fn as_ptr<D: Datum>(&self) -> TractResult<*const D> {
        if self.datum_type() != D::datum_type() {
            bail!(
                "Incompatible datum type. Required {:?}, got {:?}",
                D::datum_type(),
                self.datum_type()
            );
        }
        if self.is_null() {
            bail!("Null tensor")
        }
        Ok(self.data.as_ptr() as *const D)
    }
pub fn as_ptr < D : Datum > ( & self ) -> TractResult < * const D > { if self . datum_type ( ) != D :: datum_type ( ) { bail ! ( " " D datum_type ( ) self datum_type ( ) ) ; } if self . is_null ( ) { bail ! ( " " ) } Ok ( self . data . as_ptr ( ) as * const D ) }
Access the data as a pointer.
Access the data as a pointer .
&self
&self