Skip to content

Conversation

0x45f
Copy link
Contributor

@0x45f 0x45f commented Feb 23, 2023

PR types

Bug fixes

PR changes

Others

Describe

修复静态图下下面两个slice报错的case

# case1
import paddle

paddle.enable_static()
x = paddle.static.data(name='x', shape=[-1, 1, -1], dtype='float32')
index = paddle.static.data(name='index', shape=[-1, 1, -1], dtype='bool')
out = x[index]

# case2
paddle.enable_static()
x = paddle.static.data(name="x", shape=[-1, -1, -1])
index = paddle.static.data(name="index", shape=[-1, 1, -1], dtype='bool')
a = paddle.static.data(name="a", shape=[-1, ])
# breakpoint()
x[index] = a
print(x)

@paddle-bot
Copy link

paddle-bot bot commented Feb 23, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Apr 30, 2023

Sorry to inform you that 1d3c578's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@0x45f 0x45f closed this Jun 8, 2023
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.

1 participant