Skip to content

Commit 9647270

Browse files
fix
1 parent 4562a2b commit 9647270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hmm_class/hmmc_tf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def recurrence(old_a_old_s, B_t):
120120

121121
alpha, scale = tf.scan(
122122
fn=recurrence,
123-
elems=B,
123+
elems=B[1:],
124124
initializer=(pi*B[0], np.float32(1.0)),
125125
)
126126
# note: tensorflow is very strict about what types you pass in to initializer!

0 commit comments

Comments
 (0)