pub trait TensorOp: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn execute(&self, input: &Tensor) -> TribeResult<Tensor>;
}Expand description
Trait for all tensor operations (aligned with .AI3 TensorOp).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".