Skip to content

Conversation

@xysheng-baidu
Copy link
Contributor

PR types

New features

PR changes

Others

Describe

Add repeat_interleave unittest for 0D tensor.

@paddle-bot
Copy link

paddle-bot bot commented Jan 6, 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.

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个写到test_zero_dim_tensor.py里吧,方便统一管理
需要测这几种case:

  1. x为0D,repeat为int,axis为None
  2. x为0D,,repeat为1D Tensor,axis为None
  3. 需要测反向,加stop_gradient=False
    测试时直接比对shape吧
@xysheng-baidu xysheng-baidu force-pushed the zero_dim_unittest_repeat_interleave branch 3 times, most recently from 2219e2e to 1dc8257 Compare January 7, 2023 02:11
@xysheng-baidu xysheng-baidu force-pushed the zero_dim_unittest_repeat_interleave branch from aaa9f0e to a42bd1f Compare January 7, 2023 02:54
@xysheng-baidu
Copy link
Contributor Author

这个写到test_zero_dim_tensor.py里吧,方便统一管理 需要测这几种case:

  1. x为0D,repeat为int,axis为None
  2. x为0D,,repeat为1D Tensor,axis为None
  3. 需要测反向,加stop_gradient=False
    测试时直接比对shape吧

Done

@kuizhiqing kuizhiqing requested a review from zhwesky2010 January 9, 2023 02:57
Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhwesky2010 zhwesky2010 merged commit 923f245 into PaddlePaddle:develop Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants