From 82b952e3c46a51d1139c675fc10d8101600dcab7 Mon Sep 17 00:00:00 2001 From: pkufool Date: Thu, 16 May 2024 15:06:20 +0800 Subject: [PATCH] Fix fsa_from_str --- k2/csrc/fsa_utils.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k2/csrc/fsa_utils.cu b/k2/csrc/fsa_utils.cu index 5e3e3ba16..9eb6231fe 100644 --- a/k2/csrc/fsa_utils.cu +++ b/k2/csrc/fsa_utils.cu @@ -114,7 +114,7 @@ static Fsa K2FsaFromStream(std::istringstream &is, << ": src-state < 0 or dest-state < 0."; } for (int32_t i = 0; i < num_aux_labels; i++) { - float aux; + double aux; line_is >> aux; if ((int32_t)aux != aux) { K2_LOG(FATAL) << "Invalid line " << line