gausplat_trainer::metric

Trait Metric

source
pub trait Metric<B: Backend> {
    // Required method
    fn evaluate<const D: usize>(
        &self,
        value: Tensor<B, D>,
        target: Tensor<B, D>,
    ) -> Tensor<B, 1>;
}
Expand description

Functionality for evaluating metrics.

Required Methods§

source

fn evaluate<const D: usize>( &self, value: Tensor<B, D>, target: Tensor<B, D>, ) -> Tensor<B, 1>

Evaluate the value against the target.

§Returns

The metric value with shape [1].

Object Safety§

This trait is not object safe.

Implementors§