def test_reload_exception(self): with self.assertRaises(ValueError) as context: run.main(["test/config/reload_exception.yaml"]) self.assertEqual( str(context.exception), 'VanillaLSTMGates: x_t has inconsistent dimension 20, expecting 40' )
def test_reload_exception(self): if xnmt.backend_dynet: with self.assertRaises(ValueError) as context: run.main(["test/config/reload_exception.yaml"]) self.assertEqual(str(context.exception), 'VanillaLSTMGates: x_t has inconsistent dimension 20, expecting 40') else: with self.assertRaises(RuntimeError) as context: run.main(["test/config/reload_exception.yaml"]) self.assertIn("20", str(context.exception)) self.assertIn("40", str(context.exception))
def test_transformer(self): run.main(["test/config/transformer.yaml"])
def test_speech_retrieval(self): run.main(["test/config/speech_retrieval.yaml"])
def test_seq_labeler(self): run.main(["test/config/seq_labeler.yaml"])
def test_score(self): run.main(["test/config/score.yaml"])
def test_report(self): run.main(["test/config/report.yaml"])
def test_reload(self): run.main(["test/config/reload.yaml"])
def test_encoders(self): run.main(["test/config/encoders.yaml"])
def test_component_sharing(self): run.main(["test/config/component_sharing.yaml"])
def test_classifier(self): run.main(["test/config/classifier.yaml"])
def test_assemble(self): run.main(["test/config/assemble.yaml"])
def test_search_strategy_minrisk(self): run.main(["test/config/minrisk.yaml"])
def test_translator_loss(self): run.main(["test/config/translator_loss.yaml"])
def test_prior_segmenting(self): run.main(["test/config/prior_segmenting.yaml"])
def test_pretrained_emb(self): run.main(["test/config/pretrained_embeddings.yaml"])
def test_random_search_train_params(self): run.main(["test/config/random_search_train_params.yaml"])
def test_ensembling(self): run.main(["test/config/ensembling.yaml"])
def test_segmenting(self): run.main(["test/config/seg_report.yaml"])
def test_forced(self): run.main(["test/config/forced.yaml"])
def test_retrieval(self): run.main(["test/config/retrieval.yaml"])
def test_lm(self): run.main(["test/config/lm.yaml"])
def test_self_attentional_am(self): run.main(["test/config/self_attentional_am.yaml"])
def test_load_model(self): run.main(["test/config/load_model.yaml"])
def test_speech(self): run.main(["test/config/speech.yaml"])
def test_multi_task(self): run.main(["test/config/multi_task.yaml"])
def test_standard(self): run.main(["test/config/standard.yaml"])
def test_multi_task_speech(self): run.main(["test/config/multi_task_speech.yaml"])
def test_search_strategy_reinforce(self): run.main(["test/config/reinforce.yaml"])
def test_preproc(self): run.main(["test/config/preproc.yaml"])