pub struct SharedTensorsProxy {
pub len: IntProxy,
// some fields omitted
}
A proxy for a vector of tensors.
This is used for rules concerning the vector of input or output tensors:
solver.equals(inputs.len, 2);
When the indexing operator is used on a SharedTensorsProxy (e.g. inputs[0]
),
a new SharedTensorProxy is created dynamically and cached in tensors
.
The solver should check the coherence of len
with the indices of every
SharedTensorProxy involved in inference rules, to forbid rules like:
solver.equals(inputs[i].rank, 2);
when i >= len.
Creates a new SharedTensorsProxy instance.
Returns the symbolic path to the value.
Returns the symbolic path to the value.
Formats the value using the given formatter. Read more
The returned type after indexing.
Returns the SharedTensorProxy corresponding to the given index.
When an index is used for the first time, the SharedTensorProxy is created
dynamically and cached inside self.tensors
. This way, future calls
to index
will return the same SharedTensorProxy.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Convert Box<Trait>
(where Trait: Downcast
) to Box<Any>
. Box<Any>
can then be further downcast
into Box<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