[Zero_Dim][unittest] add repeat_interleave unittest for zero_dim by xysheng-baidu · Pull Request #49596 · PaddlePaddle/Paddle

@xysheng-baidu

PR types

New features

PR changes

Others

Describe

Add repeat_interleave unittest for 0D tensor.

@paddle-bot

你的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.

zhwesky2010

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

这个写到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

@xysheng-baidu

zhwesky2010

Choose a reason for hiding this comment

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

LGTM