[−][src]Struct tract_core::tensor::SharedTensor
Methods
impl SharedTensor[src]
pub fn as_tensor(&self) -> &Tensor[src]
Returns a reference to the Tensor wrapped inside a SharedTensor.
pub fn to_tensor(self) -> Tensor[src]
pub fn to_array<'a, D: Datum>(self) -> TractResult<ArrayD<D>>[src]
Methods from Deref<Target = Tensor>
pub fn is_null(&self) -> bool[src]
pub fn shape(&self) -> &[usize][src]
pub fn datum_type(&self) -> DatumType[src]
pub fn dump_t<D: Datum>(&self, force_full: bool) -> TractResult<String>[src]
pub fn dump(&self, force_full: bool) -> TractResult<String>[src]
pub fn close_enough(&self, other: &Self, approx: bool) -> bool[src]
pub fn as_ptr<D: Datum>(&self) -> TractResult<*const D>[src]
pub fn as_slice<D: Datum>(&self) -> TractResult<&[D]>[src]
pub fn to_array_view<'a, D: Datum>(&'a self) -> TractResult<ArrayViewD<'a, D>>[src]
pub fn to_scalar<'a, D: Datum>(&'a self) -> TractResult<&D>[src]
pub fn cast_to<D: Datum>(&self) -> TractResult<Cow<Tensor>>[src]
pub fn cast_to_dt(&self, dt: DatumType) -> TractResult<Cow<Tensor>>[src]
Trait Implementations
impl Output for SharedTensor[src]
fn into_wrapped(source: SharedTensor) -> Wrapped[src]
fn from_wrapped(wrapped: Wrapped) -> TractResult<SharedTensor>[src]
fn wrap(self) -> Wrapped[src]
Wraps self in the Wrapped type.
impl IntoExp<GenericFact<SharedTensor>> for SharedTensor[src]
impl PartialEq<SharedTensor> for SharedTensor[src]
fn eq(&self, other: &SharedTensor) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Clone for SharedTensor[src]
fn clone(&self) -> SharedTensor[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl From<SharedTensor> for TypedTensorInfo[src]
fn from(t: SharedTensor) -> TypedTensorInfo[src]
impl<M> From<M> for SharedTensor where
Tensor: From<M>, [src]
Tensor: From<M>,
fn from(m: M) -> SharedTensor[src]
impl From<Arc<Tensor>> for SharedTensor[src]
fn from(m: Arc<Tensor>) -> SharedTensor[src]
impl Deref for SharedTensor[src]
impl Debug for SharedTensor[src]
Auto Trait Implementations
impl Send for SharedTensor
impl Sync for SharedTensor
Blanket Implementations
impl<T, E> IntoExp<T> for E where
E: 'static + TExp<T>, [src]
E: 'static + TExp<T>,
impl<PB, Tract> ToTract<Tract> for PB where
Tract: Tractify<PB>, [src]
Tract: Tractify<PB>,
fn tractify(&Self) -> Result<Tract, TractError>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any, [src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
impl<T> Clone for T where
T: Clone, [src]
T: Clone,