[][src]Struct tract_hir::infer::rules::TensorProxy

pub struct TensorProxy {
    pub datum_type: TypeProxy,
    pub rank: IntProxy,
    pub shape: ShapeProxy,
    pub value: ValueProxy,
    // some fields omitted
}

A proxy for a tensor.

This is used for rules involving the datum_type, rank, shape or value of a tensor. Here are a few examples of constraints that can be expressed:

solver.equals(input.datum_type, DTYPE_I32)
solver.equals(input.rank, 2)
solver.equals(input.shape[1], output.value[0][1])

Fields

datum_type: TypeProxyrank: IntProxyshape: ShapeProxyvalue: ValueProxy

Implementations

impl TensorProxy[src]

pub fn new(path: Path) -> TensorProxy[src]

Creates a new TensorProxy instance.

Trait Implementations

impl Debug for TensorProxy[src]

impl Proxy for TensorProxy[src]

fn get_path(&self) -> &Path[src]

Returns the symbolic path to the value.

impl<'a> Proxy for &'a TensorProxy[src]

fn get_path(&self) -> &Path[src]

Returns the symbolic path to the value.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.