ValidationRule

Trait ValidationRule 

Source
pub trait ValidationRule:
    Debug
    + Send
    + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn validate_f32(
        &self,
        tensor: &Tensor<f32>,
    ) -> RusTorchResult<Vec<ValidationIssue>>;
    fn validate_f64(
        &self,
        tensor: &Tensor<f64>,
    ) -> RusTorchResult<Vec<ValidationIssue>>;
}
Expand description

Trait for custom validation rules カスタム検証ルールのトレイト

Required Methods§

Source

fn name(&self) -> &str

Rule name for identification 識別用ルール名

Source

fn validate_f32( &self, tensor: &Tensor<f32>, ) -> RusTorchResult<Vec<ValidationIssue>>

Apply validation rule to f32 tensor f32テンソルに検証ルールを適用

Source

fn validate_f64( &self, tensor: &Tensor<f64>, ) -> RusTorchResult<Vec<ValidationIssue>>

Apply validation rule to f64 tensor f64テンソルに検証ルールを適用

Implementors§