Skip to main content

BackendTypes

Trait BackendTypes 

Source
pub trait BackendTypes {
    type Device: DeviceOps;
    type FloatTensorPrimitive: TensorMetadata + 'static;
    type FloatElem: Element;
    type IntTensorPrimitive: TensorMetadata + 'static;
    type IntElem: Element;
    type BoolTensorPrimitive: TensorMetadata + 'static;
    type BoolElem: Element;
    type QuantizedTensorPrimitive: TensorMetadata + QTensorPrimitive + 'static;
}
Expand description

The mapping of types used by Backend and traits like Numeric, BasicOps

Required Associated Types§

Source

type Device: DeviceOps

Device type.

Source

type FloatTensorPrimitive: TensorMetadata + 'static

Tensor primitive to be used for all float operations.

Source

type FloatElem: Element

Default float element type.

Source

type IntTensorPrimitive: TensorMetadata + 'static

Tensor primitive to be used for all int operations.

Source

type IntElem: Element

Int element type.

Source

type BoolTensorPrimitive: TensorMetadata + 'static

Tensor primitive to be used for all bool operations.

Source

type BoolElem: Element

Tensor primitive to be used for all bool operations.

Source

type QuantizedTensorPrimitive: TensorMetadata + QTensorPrimitive + 'static

Tensor primitive to be used for all quantized operations.

Implementors§