Skip to content

Commit

Permalink
Restrict single-threading to single sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Nov 15, 2024
1 parent 67343ac commit 4c126d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/inference/forward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function forward!(
control_seq::AbstractVector;
seq_ends::AbstractVectorOrNTuple{Int},
)
if seq_ends isa NTuple
if seq_ends isa NTuple{1}
for k in eachindex(seq_ends)
_forward!(storage, hmm, obs_seq, control_seq, seq_ends, k)
end
Expand Down
2 changes: 1 addition & 1 deletion src/inference/forward_backward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function forward_backward!(
seq_ends::AbstractVectorOrNTuple{Int},
transition_marginals::Bool=true,
)
if seq_ends isa NTuple
if seq_ends isa NTuple{1}
for k in eachindex(seq_ends)
_forward_backward!(
storage, hmm, obs_seq, control_seq, seq_ends, k; transition_marginals
Expand Down
2 changes: 1 addition & 1 deletion src/inference/viterbi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function viterbi!(
control_seq::AbstractVector;
seq_ends::AbstractVectorOrNTuple{Int},
) where {R}
if seq_ends isa NTuple
if seq_ends isa NTuple{1}
for k in eachindex(seq_ends)
_viterbi!(storage, hmm, obs_seq, control_seq, seq_ends, k)
end
Expand Down

0 comments on commit 4c126d8

Please sign in to comment.