We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
paddle2.0版本静态图模式下,想要对一个batch的ins做循环,以下各种用法都提示不存在接口,请问正确的用法应该是怎样的,或者怎样高效实现循环呢: [i] = paddle.static.While(loop_cond, loop_body,[i]) 报错:'module' object has no attribute 'While' [i] = paddle.static.nn.control_flow.While(loop_cond, loop_body,[i]) 报错:'module' object has no attribute 'control_flow' [i] = paddle.static.nn.while_loop(loop_cond, loop_body,[i])
The text was updated successfully, but these errors were encountered:
你好,请参考这个文档:https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/static/nn/while_loop_cn.html#while-loop
我在python38 paddle2.0的环境下测试了,输出正常。
Sorry, something went wrong.
zhangbopd
No branches or pull requests
请提出你的问题 Please ask your question
paddle2.0版本静态图模式下,想要对一个batch的ins做循环,以下各种用法都提示不存在接口,请问正确的用法应该是怎样的,或者怎样高效实现循环呢:
[i] = paddle.static.While(loop_cond, loop_body,[i])
报错:'module' object has no attribute 'While'
[i] = paddle.static.nn.control_flow.While(loop_cond, loop_body,[i])
报错:'module' object has no attribute 'control_flow'
[i] = paddle.static.nn.while_loop(loop_cond, loop_body,[i])
The text was updated successfully, but these errors were encountered: