//! Loss function trait
usecrate::Tensor;/// Trait for loss functions
pubtraitLossFn{/// Compute loss given predictions and targets
////// Returns a scalar loss value and sets up gradients for backpropagation
fnforward(&self, predictions:&Tensor, targets:&Tensor)-> Tensor;/// Name of the loss function
fnname(&self)->&str;}