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

Support specifying max number of frames the model can process. #14

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

csukuangfj
Copy link
Contributor

To fix the following error when the input wave is longer than 11 seconds.

2024-04-22 09:56:34.994 Python[2182:11259428] 2024-04-22 09:56:34.992914 [E:onnxruntime:, sequential_executor.cc:514 ExecuteKernel] Non-zero status code returned while running Add node. Name:'/Add' Status Message: /Users/runner/work/1/s/onnxruntime/core/providers/cpu/math/element_wise_ops.h:540 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 63 by 71
Traceback (most recent call last):
  File "./python-api-examples/audio-tagging-from-a-file-ced.py", line 119, in <module>
    main()
  File "./python-api-examples/audio-tagging-from-a-file-ced.py", line 94, in main
    result = audio_tagger.compute(stream)
RuntimeError: Non-zero status code returned while running Add node. Name:'/Add' Status Message: /Users/runner/work/1/s/onnxruntime/core/providers/cpu/math/element_wise_ops.h:540 void onnxruntime::BroadcastIterator::Init(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 63 by 71

By the way, please use squash and merge.

Screenshot 2024-04-22 at 10 02 56

@RicherMans RicherMans merged commit 057601a into RicherMans:main Apr 22, 2024
@RicherMans
Copy link
Owner

Thanks 方军!

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.

2 participants