mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-13 12:02:21 +00:00
Remove duplicate lines
This commit is contained in:
parent
4e89a43442
commit
9808d30282
@ -261,7 +261,6 @@ def main():
|
|||||||
if params.method in ["whole-lattice-rescoring", "attention-decoder"]:
|
if params.method in ["whole-lattice-rescoring", "attention-decoder"]:
|
||||||
logging.info(f"Loading G from {params.G}")
|
logging.info(f"Loading G from {params.G}")
|
||||||
G = k2.Fsa.from_dict(torch.load(params.G, map_location="cpu"))
|
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
|
# Add epsilon self-loops to G as we will compose
|
||||||
# it with the whole lattice later
|
# it with the whole lattice later
|
||||||
G = G.to(device)
|
G = G.to(device)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user