Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

searcher_ -> Search(ctc_log_probs)函数出错 #553

Closed
fivenick opened this issue Aug 4, 2021 · 1 comment
Closed

searcher_ -> Search(ctc_log_probs)函数出错 #553

fivenick opened this issue Aug 4, 2021 · 1 comment

Comments

@fivenick
Copy link

fivenick commented Aug 4, 2021

调用torch_asr_decoder.cc文件中的函数searcher_ -> Search(ctc_log_probs)函数时,sometime it runs correct, but sometimes is runs error。
the error is :
terminate called after throwing an instance of 'c10::Error'
what(): selected index k out of range
Exception raised from topk_out_cpu at ../aten/src/ATen/native/Sorting.cpp:197 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) + 0x69 (0x7f509c62aeb9 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libc10.so)
frame #1: at::native::topk_out_cpu(at::Tensor&, at::Tensor&, at::Tensor const&, long, long, bool, bool) + 0x26f (0x7f509d6f8b2f in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #2: + 0x11bbdd9 (0x7f509da13dd9 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #3: + 0x11d781e (0x7f509da2f81e in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #4: at::topk_out(at::Tensor&, at::Tensor&, at::Tensor const&, long, long, bool, bool) + 0x189 (0x7f509da72149 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #5: at::native::topk(at::Tensor const&, long, long, bool, bool) + 0x10d (0x7f509d6f86bd in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #6: + 0x11bbe25 (0x7f509da13e25 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #7: + 0x11d9cd4 (0x7f509da31cd4 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #8: at::topk(at::Tensor const&, long, long, bool, bool) + 0x130 (0x7f509dac0e70 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #9: + 0x2ec0f51 (0x7f509f718f51 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #10: + 0x11d9cd4 (0x7f509da31cd4 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #11: at::Tensor::topk(long, long, bool, bool) const + 0x127 (0x7f509dc68f27 in /home/wenet_self/runtime/server/x86/fc_base/libtorch-src/lib/libtorch_cpu.so)
frame #12: + 0x76bfd (0x55f985a10bfd in ./decoder_main)
frame #13: + 0x5f1b6 (0x55f9859f91b6 in ./decoder_main)
frame #14: + 0x5e21c (0x55f9859f821c in ./decoder_main)
frame #15: + 0x50bdc (0x55f9859eabdc in ./decoder_main)
frame #16: + 0x473ec (0x55f9859e13ec in ./decoder_main)
frame #17: __libc_start_main + 0xf3 (0x7f509b87c0b3 in /lib/x86_64-linux-gnu/libc.so.6)
frame #18: + 0x46dde (0x55f9859e0dde in ./decoder_main)

@robin1001
Copy link
Collaborator

What is your dataset? public or private?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants