Closed Liyulingyue closed 1 week ago
@Liyulingyue 你好,我咨询下相关同学看是否有不兼容升级
@Liyulingyue 该问题为确认的Bug,相关同学后续会修复
已在#69480 中修复,
t_not_eq_zero_indices = paddle.to_tensor([[True, True, True, True, True, True, False, True, True, True, True, True, True]])
mask = (t_not_eq_zero_indices.numpy())
sinc_filter = paddle.to_tensor([-159.05421448, 159.34126282, -159.57885742, 159.76324463,
-159.89434814, 159.97329712, 159.97329712, -159.89434814,
159.76324463, -159.57885742, 159.34126282, -159.05421448])
v = (sinc_filter.numpy())
weights = paddle.to_tensor([[0.00024673, 0.07367989, 0.25912309, 0.50785363, 0.75452065, 0.93431580,
1. , 0.93431580, 0.75452065, 0.50785363, 0.25912309, 0.07367989,
0.00024673]])
x = (weights.numpy())
weights[t_not_eq_zero_indices] *= sinc_filter
x[mask] *= v
import numpy as np
np.testing.assert_allclose(weights.numpy(), x)
请提出你的问题 Please ask your question
问题说明
下述代码在Paddle 2.5 下可以使用,但在 Paddle 3.0 会出现报错。请问这个情况是是升级的特性,还是一个需要被修复的问题?
可复现代码
报错信息