Skip to main content

QVisionOps

Trait QVisionOps 

Source
pub trait QVisionOps: Backend {
    // Provided methods
    fn q_erode(
        input: QuantizedTensor<Self>,
        kernel: BoolTensor<Self>,
        opts: MorphOptions<Self, Float>,
    ) -> QuantizedTensor<Self> { ... }
    fn q_dilate(
        input: QuantizedTensor<Self>,
        kernel: BoolTensor<Self>,
        opts: MorphOptions<Self, Float>,
    ) -> QuantizedTensor<Self> { ... }
}
Expand description

Vision ops on quantized float tensors

Provided Methods§

Source

fn q_erode( input: QuantizedTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Float>, ) -> QuantizedTensor<Self>

Erodes an input tensor with the specified kernel.

Source

fn q_dilate( input: QuantizedTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Float>, ) -> QuantizedTensor<Self>

Dilates an input tensor with the specified kernel.

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.

Implementations on Foreign Types§

Source§

impl<B: FusionBackend + QVisionOps> QVisionOps for Fusion<B>

Source§

impl<E: FloatNdArrayElement, I: IntNdArrayElement, Q: QuantElement> QVisionOps for NdArray<E, I, Q>

Source§

impl<R, F, I, BT> QVisionOps for CubeBackend<R, F, I, BT>

Implementors§