[][src]Trait tract_hir::infer::rules::Proxy

pub trait Proxy {
    fn get_path(&self) -> &Path;
}

A proxy for any value.

Required methods

fn get_path(&self) -> &Path

Returns the symbolic path to the value.

Take the inputs[0].shape[1] proxy for instance: it represents the second dimension of the shape of the first input. Because we encode the "inputs" vectors as 0, and the shape field as 2, the path for this proxy will be vec![0, 0, 2, 1].

Loading content...

Implementors

impl Proxy for DimProxy[src]

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

Returns the symbolic path to the value.

impl Proxy for ElementProxy[src]

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

Returns the symbolic path to the value.

impl Proxy for IntProxy[src]

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

Returns the symbolic path to the value.

impl Proxy for ShapeProxy[src]

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

Returns the symbolic path to the value.

impl Proxy for TypeProxy[src]

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

Returns the symbolic path to the value.

impl Proxy for ValueProxy[src]

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

Returns the symbolic path to the value.

impl Proxy for TensorProxy[src]

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

Returns the symbolic path to the value.

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

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

Returns the symbolic path to the value.

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

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

Returns the symbolic path to the value.

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

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

Returns the symbolic path to the value.

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

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

Returns the symbolic path to the value.

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

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

Returns the symbolic path to the value.

impl<'a> Proxy for &'a ValueProxy[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.

Loading content...