Skip to main content

TensorExprExt

Trait TensorExprExt 

Source
pub trait TensorExprExt<T: Scalar, B: ComputeBackend> {
    // Required method
    fn expr(&self) -> Expr<TensorRef<'_, T, B>>;
}
Expand description

Extension trait that converts a Tensor into a fused expression leaf.

Required Methods§

Source

fn expr(&self) -> Expr<TensorRef<'_, T, B>>

Create a fused expression leaf referencing this tensor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Scalar, B: ComputeBackend> TensorExprExt<T, B> for Tensor<T, B>

Source§

fn expr(&self) -> Expr<TensorRef<'_, T, B>>

Implementors§