Remove duplicate lines

This commit is contained in:
pkufool 2021-08-22 22:19:04 +08:00
parent 4e89a43442
commit 9808d30282

View File

@ -261,7 +261,6 @@ def main():
if params.method in ["whole-lattice-rescoring", "attention-decoder"]:
logging.info(f"Loading G from {params.G}")
G = k2.Fsa.from_dict(torch.load(params.G, map_location="cpu"))
G = G.to(device)
# Add epsilon self-loops to G as we will compose
# it with the whole lattice later
G = G.to(device)