-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【PaddlePaddle Hackathon 2】8、为 Paddle 新增 nanmean API #40327
Comments
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~ Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day! |
要和paddle.mean()一样兼容dygraph_mode吗? |
paddle.nansum这个函数没找到啊 |
是的 |
develop 分支下就有 |
(此 ISSUE 为 PaddlePaddle Hackathon 第二期活动的任务 ISSUE,更多详见 【PaddlePaddle Hackathon 第二期】任务总览)
【任务说明】
任务标题:为 Paddle 新增 nanmean API
技术标签:深度学习框架,Python
任务难度:简单
详细描述:paddle.nanmean 扩展了 paddle.mean API 的功能,如果输入Tensor中有nan值, paddle.mean在计算中会将涉及nan值的结果都置为nan,而 paddle.nanmean 会跳过nan值。比如输入数据 x = [[nan, 1. , 2. ], [3. , 4. , 5. ]],x.mean() 得到 [nan],x.mean(0) 得到 [nan, 2.5, 3.5],x.nanmean() 得到 [3.],x.nanmean(0) 得到 [3., 2.5, 3.5]。此API需支持的调用路径为:paddle.nanmean 和 Tensor.nanmean 。
【提交流程】
请按 新增API 开发&提交流程中的描述,完成任务提交过程中的相关步骤。
【提交内容】
【合入标准】
【技术要求】
【参考内容】
【答疑交流】
The text was updated successfully, but these errors were encountered: