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

请问PaddleCustom-mlu 哪个版本支持rnn,lstm #1541

Open
wangzy0327 opened this issue Jan 2, 2025 · 2 comments
Open

请问PaddleCustom-mlu 哪个版本支持rnn,lstm #1541

wangzy0327 opened this issue Jan 2, 2025 · 2 comments
Assignees

Comments

@wangzy0327
Copy link

ValueError: (InvalidArgument) MLU only support LSTM mode now, current mode is RNN_TANH
[Hint: Expected mode == "LSTM", but received mode:RNN_TANH != "LSTM":LSTM.] (at /paddle/backends/mlu/kernels/rnn_kernel.cc:127)

ValueError: (InvalidArgument) MLU only support 1 num_layers, current num_layers is 3
[Hint: Expected num_layers == 1, but received num_layers:3 != 1:1.] (at /paddle/backends/mlu/kernels/rnn_kernel.cc:133)

@PeiyuLau
Copy link
Contributor

PeiyuLau commented Jan 3, 2025

目前这个算子有限制,只支持lstm, 并且num_layer=1。
对ppocr/modeling/necks/rnn.py做如下修改:
image

@wangzy0327
Copy link
Author

目前这个算子有限制,只支持lstm, 并且num_layer=1。 对ppocr/modeling/necks/rnn.py做如下修改: image

请问仅支持lstm是Paddle框架的限制么?还是mlu库接口的问题呢?pytorch-mlu是支持rnn和lstm的

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

3 participants