Spaces:
Running
on
Zero
Running
on
Zero
from abc import ABC, abstractmethod | |
import torch | |
class BaseLoss(ABC): | |
def __init__(self, config) -> None: | |
super().__init__() | |
def get_loss_metric_names(self) -> list[str]: | |
... | |
def __call__(self, data) -> dict[str, torch.Tensor]: | |
... | |