File size: 476 Bytes
fb53ec8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import torch
import numpy as np

from .. import nputils
from ..log_service import print_log

from .eva_base import base_evaluator, register

@register('null')
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