pub trait TensorKind<B>: Clone + Debugwhere
B: BackendTypes,{
type Primitive: TensorMetadata;
// Required method
fn name() -> &'static str;
}Expand description
A type-level representation of the kind of a tensor. Metadata access is lazy.
Required Associated Types§
Sourcetype Primitive: TensorMetadata
type Primitive: TensorMetadata
The primitive type of the tensor.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".