[−][src]Struct tract_core::tensor::Tensor
Methods
impl Tensor
[src]
impl Tensor
pub unsafe fn uninitialized_aligned<T: Datum>( | [src] |
pub unsafe fn from_raw<T: Datum>( | [src] |
pub fn into_aligned(self, alignment: usize) -> TractResult<Tensor> | [src] |
pub unsafe fn null<T: Datum>(shape: &[usize]) -> TractResult<Tensor> | [src] |
pub unsafe fn null_dt(dt: DatumType, shape: &[usize]) -> TractResult<Tensor> | [src] |
pub fn is_null(&self) -> bool | [src] |
pub fn into_tensor(self) -> SharedTensor | [src] |
pub fn shape(&self) -> &[usize] | [src] |
pub fn into_shape(self, shape: &[usize]) -> TractResult<Tensor> | [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 into_array<D: Datum>(self) -> TractResult<ArrayD<D>> | [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 as_slice_mut<D: Datum>(&mut self) -> TractResult<&mut [D]> | [src] |
pub fn as_ptr_mut<D: Datum>(&mut self) -> TractResult<*mut D> | [src] |
pub fn to_array_view_mut<'a, D: Datum>( | [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 From<bool> for Tensor
[src]
impl From<bool> for Tensor
impl From<f16> for Tensor
[src]
impl From<f16> for Tensor
impl From<f32> for Tensor
[src]
impl From<f32> for Tensor
impl From<f64> for Tensor
[src]
impl From<f64> for Tensor
impl From<i8> for Tensor
[src]
impl From<i8> for Tensor
impl From<i16> for Tensor
[src]
impl From<i16> for Tensor
impl From<i32> for Tensor
[src]
impl From<i32> for Tensor
impl From<i64> for Tensor
[src]
impl From<i64> for Tensor
impl From<u8> for Tensor
[src]
impl From<u8> for Tensor
impl From<u16> for Tensor
[src]
impl From<u16> for Tensor
impl From<TDim> for Tensor
[src]
impl From<TDim> for Tensor
impl<D: Dimension, T: Datum> From<ArrayBase<OwnedRepr<T>, D>> for Tensor
[src]
impl<D: Dimension, T: Datum> From<ArrayBase<OwnedRepr<T>, D>> for Tensor
impl PartialEq<Tensor> for Tensor
[src]
impl PartialEq<Tensor> for Tensor
fn eq(&self, other: &Tensor) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl Clone for Tensor
[src]
impl Clone for Tensor
fn clone(&self) -> Tensor | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for Tensor
[src]
impl Debug for Tensor
Auto Trait Implementations
Blanket Implementations
impl<PB, Tract> ToTract for PB where
Tract: Tractify<PB>,
[src]
impl<PB, Tract> ToTract for PB where
Tract: Tractify<PB>,
fn tractify(&Self) -> Result<Tract, TractError> | [src] |
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Downcast for T where
T: Any,
[src]
impl<T> Downcast for T where
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]
impl<T> Clone for T where
T: Clone,