baidu / baidu/Dialogue

ValueError: (InvalidArgument) Broadcast dimension mismatch.

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
442
Forks
93
PR merge metrics
No merged PRs in 30d

Description

执行“bash run.sh atis_intent train”命令时出现如下错误:

ValueError: (InvalidArgument) Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [-1, 12, 128, 128] and the shape of Y = [-1, 12, -1]. Received [128] in X is not equal to [12] in Y at i:2.
[Hint: Expected x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1 == true, but received x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1:0 != true:1.] (at /paddle/paddle/fluid/operators/elementwise/elementwise_op_function.h:169)
[operator < elementwise_add > error]

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `bash run.sh atis_intent train`, then inspect `run.sh` and the `atis_intent` training entry point. Trace the `elementwise_add` operands that produce shapes `[-1, 12, 128, 128]` and `[-1, 12, -1]`; done means training runs without the broadcast dimension mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.