请提出你的问题 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]
2条答案
按热度按时间vjrehmav1#
我的input时这样设置的
准备输入数据(这里使用 numpy 数组作为示例)
input_data = np.random.randint(0, 100, size=[1, 100], dtype=np.int64)
spk_id_data = np.array([1], dtype=np.int64)
4dc9hkyq2#
您好,麻烦补充下飞桨版本号,复现代码