pub struct TensorProxy {
    pub datum_type: TypeProxy,
    pub rank: IntProxy,
    pub shape: ShapeProxy,
    pub value: ValueProxy,
    /* private fields */
}
Expand description

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

Creates a new TensorProxy instance.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the symbolic path to the value.

Returns the symbolic path to the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.