From 04c9fc9c9f9e481cbfae18bb34252b878ff51f6a Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Fri, 2 Dec 2022 09:18:28 +0800 Subject: [PATCH] Fix for older versions of k2 (#725) --- icefall/graph_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icefall/graph_compiler.py b/icefall/graph_compiler.py index 84be81254..0dcd777ad 100644 --- a/icefall/graph_compiler.py +++ b/icefall/graph_compiler.py @@ -81,7 +81,7 @@ class CtcTrainingGraphCompiler(object): self.ctc_topo._is_repeat_token_ = ( self.ctc_topo.labels != self.ctc_topo.aux_labels - ) + ).int() decoding_graph = k2.compose( self.ctc_topo, fsa_with_self_loops, treat_epsilons_specially=False