burn_tensor

Trait TensorKind

Source
pub trait TensorKind<B: Backend>: Clone + Debug {
    type Primitive: Clone + Debug + Send + Sync;

    // Required method
    fn name() -> &'static str;
}
Expand description

A type-level representation of the kind of a tensor.

Required Associated Types§

Source

type Primitive: Clone + Debug + Send + Sync

The primitive type of the tensor.

Required Methods§

Source

fn name() -> &'static str

The name of the tensor kind.

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.

Implementors§