-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Dy2St] pir dy2st unittest verification - Part 6 #59007
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
Conversation
| print( | ||
| "wrong model name, please try model = MobileNetV1 or MobileNetV2" | ||
|
|
||
| paddle.enable_static() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改用 unique_name.guard 吧
test/dygraph_to_static/test_cast.py
Outdated
| @test_legacy_and_pir_exe_and_pir_api | ||
| def test_cast_result(self): | ||
| self.set_func() | ||
| # breakpoint() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两行注释删掉吧
| """ | ||
| paddle.jit.enable_to_static(to_static) | ||
| paddle.enable_static() | ||
| paddle.disable_static() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同样,用 unique_name guard
| conf_dict['dict_size'] = len(vocab) | ||
| conf_dict['seq_len'] = args.seq_len | ||
|
|
||
| net = BOW(conf_dict) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BOW 上面有 @to_static,需要拿下来
HingeLoss 可能一样,得检查下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意 TestStatic 里的写法,不能用 Program,要用动态访问的形式,可以用 paddle.static.Program,否则 IrGuard 可能无法正常切换
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个改了么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
SigureMo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--------- Co-authored-by: SigureMo <sigure.qaq@gmail.com>

PR types
Others
PR changes
Others
Description
test_mobile_netTestMobileNet需要适配jit.api.save方法AttributeError: 'list' object has no attribute 'type'test_resnet_ampNotImplementedError: not implement error.test_resnet_amppaddle.Tensor.backwardapi 报错, 看样子是 c++ 的检查PreconditionNotMetError: The meta data must be valid when call the mutable data functiontest_resnet_v2test_in_static_mode_mkldnn在我本地跑不了, 不过应该也是挂的test_simnetPartialProgramLayer._append_backward_descType validation failed for the 0th output.test_to_tensor:TestStatic.test_staticpaddle.static.nn.fc需要适配TypeError: The type of 'input' in fc must be (<class 'list'>, <class 'tuple'>, <class 'paddle.base.framework.Variable'>), but received <class 'paddle.base.libpaddle.pir.OpResult'>.test_to_tensor:TestStatic.test_to_tensor_badreturnF1114 22:44:45.077468 360871424 op_result_impl.cc:29] Destoryed a op_result that is still in use. The owner op type is:pd_op.full_like,反向有一个 warning(WARNING:root:input privided by inputs has no use)中间态问题记录:
test/dygraph_to_static/test_to_tensor.py文件的TestStatic.test_static单测,需要装饰@test_pir_only复现报错信息:
相关链接: