Пример #1
0
def test_get_callbacks(test_dir: str, config: Configuration):
    model = DeepSpeech.get_model(**config.model, is_gpu=False)
    callbacks = DeepSpeech.get_callbacks(home_dir=test_dir,
                                         configurations=config.callbacks,
                                         model=model)
    assert len(callbacks) == 2
Пример #2
0
def test_get_callbacks(test_dir: str, config: Configuration):
    callbacks = DeepSpeech.get_callbacks(home_dir=test_dir,
                                         configurations=config.callbacks)
    assert len(callbacks) == 2