Skip to content

Commit 43fe727

Browse files
authoredMay 17, 2024··
Fix fsa_from_str (#1287)
1 parent a5cef5d commit 43fe727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎k2/csrc/fsa_utils.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static Fsa K2FsaFromStream(std::istringstream &is,
114114
<< ": src-state < 0 or dest-state < 0.";
115115
}
116116
for (int32_t i = 0; i < num_aux_labels; i++) {
117-
float aux;
117+
double aux;
118118
line_is >> aux;
119119
if ((int32_t)aux != aux) {
120120
K2_LOG(FATAL) << "Invalid line " << line

0 commit comments

Comments
 (0)
Please sign in to comment.