Skip to content

Commit d935e2e

Browse files
committed
Rename variable
1 parent 8796f2e commit d935e2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

im2latex/evaluation/evaluate_im2latex_inference.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def test_evaluate(self):
2323
dataset.prepare_data()
2424
dataset.setup()
2525

26-
inference = Im2LatexInference()
26+
reasoner = Im2LatexInference()
2727
trainer = pl.Trainer(gpus=1)
2828

2929
start_time = time.time()
30-
metrics = trainer.test(inference.lit_model, datamodule=dataset)
30+
metrics = trainer.test(reasoner.lit_model, datamodule=dataset)
3131
end_time = time.time()
3232

3333
test_bleu = round(metrics[0]["test_bleu"], 4)

0 commit comments

Comments
 (0)