You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a case where best_paths = k2.shortest_path(fsa, use_double_scores=True) can return an emtpy Fsa and was surprised that bool(best_paths) returns True.
Is this by design or would you consider adding something like:
I encountered a case where
best_paths = k2.shortest_path(fsa, use_double_scores=True)
can return an emtpy Fsa and was surprised thatbool(best_paths)
returnsTrue
.Is this by design or would you consider adding something like:
I noticed the same behaviour for
RaggedTensor
wherebool(k2.RaggedTensor([], dtype=torch.int32))
returnsTrue
.The text was updated successfully, but these errors were encountered: