File size: 283 Bytes
62e9ca6
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import importlib
import os


for file in os.listdir(os.path.dirname(__file__)):
    if file.endswith(".py") and not file.startswith("_"):
        criterion_name = file[: file.find(".py")]
        importlib.import_module(
            "speech2c.criterions." + criterion_name
        )