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

Catch exception from non-streaming paraformer. #307

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

csukuangfj
Copy link
Collaborator

To fix the following error for some input waves:

2023-09-12 16:36:34.984 sherpa-onnx-offline[64003:6595949] 2023-09-12 16:36:34.984712 
[E:onnxruntime:, sequential_executor.cc:514 ExecuteKernel] 
Non-zero status code returned while running ConstantOfShape node. 
Name:'ConstantOfShape_5489' Status Message: /Users/runner/work/1/s/onnxruntime/core/framework/op_kernel.cc:83 
virtual OrtValue *onnxruntime::OpKernelContext::OutputMLValue(int, const onnxruntime::TensorShape &) 
status.IsOK() was false. Tensor shape cannot contain any negative value

2023-09-12 16:36:34.984 sherpa-onnx-offline[64003:6595949] 2023-09-12 16:36:34.984889 
[E:onnxruntime:, sequential_executor.cc:514 ExecuteKernel] Non-zero status code returned while running Loop node. 
Name:'Loop_5471' Status Message: Non-zero status code returned while running ConstantOfShape node. 
Name:'ConstantOfShape_5489' Status Message: /Users/runner/work/1/s/onnxruntime/core/framework/op_kernel.cc:83 
virtual OrtValue *onnxruntime::OpKernelContext::OutputMLValue(int, const onnxruntime::TensorShape &) 
status.IsOK() was false. Tensor shape cannot contain any negative value

@csukuangfj csukuangfj merged commit d46b7ec into k2-fsa:master Sep 12, 2023
134 of 142 checks passed
@csukuangfj csukuangfj deleted the fix-offline-paraformer branch September 12, 2023 08:44
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

Successfully merging this pull request may close these issues.

1 participant