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

昇腾910B上填充模式不正确 #14

Closed
zhangxiangchn opened this issue Sep 6, 2024 · 1 comment
Closed

昇腾910B上填充模式不正确 #14

zhangxiangchn opened this issue Sep 6, 2024 · 1 comment

Comments

@zhangxiangchn
Copy link

zhangxiangchn commented Sep 6, 2024

Traceback (most recent call last):
File "/root/work/VoiceprintRecognition/infer_eer.py", line 88, in
eval_network(predictor, eval_list, eval_path, sample_rate=16000)
File "/root/work/VoiceprintRecognition/infer_eer.py", line 59, in eval_network
embedding = predictor.predict(os.path.join(eval_path, file),sample_rate=16000)
File "/root/work/VoiceprintRecognition/ppvector/predict.py", line 238, in predict
audio_feature, _ = self._audio_featurizer(input_data, input_len_ratio)
File "/usr/local/lib/python3.9/dist-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, **kwargs)
File "/root/work/VoiceprintRecognition/ppvector/data_utils/featurizer.py", line 43, in forward
feature = self.feat_fun(waveforms)
File "/usr/local/lib/python3.9/dist-packages/paddle/nn/layer/layers.py", line 1429, in call
return self.forward(*inputs, **kwargs)
File "/root/work/VoiceprintRecognition/ppvector/data_utils/featurizer.py", line 94, in forward
log_fbank = Kaldi.fbank(waveform, **self.kwargs)
File "/usr/local/lib/python3.9/dist-packages/paddleaudio/compliance/kaldi.py", line 462, in fbank
strided_input, signal_log_energy = _get_window(
File "/usr/local/lib/python3.9/dist-packages/paddleaudio/compliance/kaldi.py", line 170, in _get_window
offset_strided_input = paddle.nn.functional.pad(
File "/usr/local/lib/python3.9/dist-packages/paddle/nn/functional/common.py", line 1778, in pad
out = _C_ops.pad3d(x, pad, mode, value, data_format)
NotImplementedError: (Unimplemented) npu npu only support mode=constant right now,but received mode is replicate .
[Hint: Expected mode == "constant", but received mode:replicate != "constant":constant.] (at /root/work/paddle_finance_qa/PaddleCustomDevice/backends/npu/kernels/pad3d_kernel.cc:43)

@zhangxiangchn zhangxiangchn changed the title 昇腾910B和寒武纪MLU上是否支持 昇腾910B上填充模式不正确 Sep 10, 2024
@yeyupiaoling
Copy link
Owner

@zhangxiangchn 这个应该是昇腾910B不支持pad3d算子的问题

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