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

fix reduce_mean_op_xpu op bug for cvrq #7

Merged
merged 1 commit into from
Sep 13, 2023
Merged

fix reduce_mean_op_xpu op bug for cvrq #7

merged 1 commit into from
Sep 13, 2023

Conversation

xymyeah
Copy link
Collaborator

@xymyeah xymyeah commented Sep 12, 2023

fix reduce_mean_op_xpu op bug for cvrq:

gtest_broadcast_mul(api::kXPU2, "GM_0", "GM", "GM_0", {287, 990, 8}, {287, 990});
ASSERT-FAIL[src/wrapper/math_broadcast_calc_common.cpp:587]

ExternalError: XPU broadcast_mul kernel return wrong value[1 xpu api invalid param]
[Hint: Expected r == XPU_SUCCESS, but received r:1 != XPU_SUCCESS:0.] (at /workspace/workspace/Paddle/paddle/fluid/operators/reduce_ops/reduce_mean_op_xpu.cc:138)
[operator < reduce_mean_grad > error]. (at /workspace/workspace/Paddle/paddle/fluid/framework/threadpool.h:46)

Compile Traceback (most recent call last):
File "./framework/train.py", line 352, in
update_model = model.Model(slot, False, config.update_model_lr, param_sgd_lr_map)
File "./model.py", line 167, in init
self._base_net(self.slot_data, self.label_cast)
File "./model.py", line 640, in _base_net
self._update_net()
File "./model.py", line 422, in _update_net
self.ctr_squeeze_input = self._squeeze_inputs(self.ctr_base_normalized, self.ctr_slot_stop[0]-self.ctr_slot_start[0], 11, ["mean", "max"], 8)
File "./model.py", line 364, in _squeeze_inputs
squeeze_tensor = paddle.mean(inputs_group, axis=2, keepdim=False)

PR types

PR changes

Describe

@tiancaitzp tiancaitzp merged commit d2010f0 into jack603047588:paddlebox Sep 13, 2023
@xymyeah xymyeah deleted the reduce_mean_for_xpu branch September 19, 2023 09:14
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

Successfully merging this pull request may close these issues.

2 participants