Skip to main content

FeatureMapShape

Trait FeatureMapShape 

Source
pub trait FeatureMapShape {
    // Required method
    fn feature_dim(&self) -> usize;
}
Expand description

Helper trait for kinds of feature extractor whose output dimension matches the base kernel’s expected input dimension. Implemented automatically for every NeuralFeatureMap; exists purely as a documentation anchor.

Required Methods§

Source

fn feature_dim(&self) -> usize

Output dimension of the feature map — i.e. the dimension the base kernel will see.

Implementors§