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

这里维度好像不匹配,请问有大佬知道原因吗? #64268

Open
linlongrd opened this issue May 13, 2024 · 2 comments
Open

这里维度好像不匹配,请问有大佬知道原因吗? #64268

linlongrd opened this issue May 13, 2024 · 2 comments
Assignees
Labels

Comments

@linlongrd
Copy link

请提出你的问题 Please ask your question

ValueError: (InvalidArgument) Decrease dim should be 1, but now received 0
[Hint: Expected decreased_dims[axis] == 1, but received decreased_dims[axis]:0 != 1:1.] (at ..\paddle/phi/kernels/funcs/slice_utils.h:198)
[operator < slice > error] [operator < run_program > error]

@linlongrd
Copy link
Author

我的input时这样设置的

准备输入数据(这里使用 numpy 数组作为示例)

input_data = np.random.randint(0, 100, size=[1, 100], dtype=np.int64)
spk_id_data = np.array([1], dtype=np.int64)

@cxxly
Copy link
Contributor

cxxly commented May 14, 2024

您好,麻烦补充下飞桨版本号,复现代码

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

No branches or pull requests

2 participants