pub trait ZeroTensor {
// Required method
fn zeros(shape: &[i64]) -> Tensor;
}Expand description
Adds capability of constructing Tensor with a static method.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.