Spaces:
Runtime error
Runtime error
import torch | |
import numpy as np | |
from .. import nputils | |
from ..log_service import print_log | |
from .eva_base import base_evaluator, register | |
class null_evaluator(base_evaluator): | |
def __init__(self, **dummy): | |
super().__init__() | |
def add_batch(self, | |
**dummy): | |
pass | |
def compute(self): | |
return None | |
def one_line_summary(self): | |
print_log('Evaluator null') | |
def clear_data(self): | |
pass |