Skip to content
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

【Fix PIR Unittest No.463 BUAA】Fix some test case in PIR #66208

Closed
wants to merge 2 commits into from
Closed

【Fix PIR Unittest No.463 BUAA】Fix some test case in PIR #66208

wants to merge 2 commits into from

Conversation

Caogration
Copy link
Contributor

@Caogration Caogration commented Jul 18, 2024

PR Category

Others

PR Types

Others

Description

PIR下的tensor不支持_set_info和_get_info等方法赋予属性,若要赋予属性,可以重新分配和维护一个字典用于储存其属性

关联issue: #63740

Copy link

paddle-bot bot commented Jul 18, 2024

你的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-bot paddle-bot bot added the contributor External developers label Jul 18, 2024
@Caogration Caogration changed the title 【Fix PIR Unittest No.463】Fix some test case in PIR 【Fix PIR Unittest No.463 BUAA】Fix some test case in PIR Jul 18, 2024
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jul 19, 2024
@@ -29,11 +29,12 @@ class TestVarInfo(unittest.TestCase):
def test_var_info(self):
Copy link
Member

Choose a reason for hiding this comment

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

此单测明显是在测试 Variable._set_infoVariable._get_info,修改后的测试用例已经违背了原单测 case 的用意

从接口层面来看,_set_info_get_info 只是老 IR Variable 上的私有接口,且整个框架内都没有使用,因此应当视为弃用的接口,该单测没有必要适配,直接移动到 test/deprecated/legacy_test/test_var_info_deprecated.py 即可

另外麻烦将相关修改从 #66281 中剔除,属于无关修改

@Caogration Caogration closed this by deleting the head repository Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants