12 lines
150 B
Python
Executable File
12 lines
150 B
Python
Executable File
__all__ = [
|
|
'build_eval'
|
|
]
|
|
|
|
from utils import Registry
|
|
|
|
EVAL = Registry()
|
|
|
|
def build_eval(cfg):
|
|
eval = EVAL[cfg["task"]](cfg)
|
|
return eval
|