-
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
[Dy2St] pir dy2st unittest verification - Part 6 #59007
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
@@ -188,7 +187,7 @@ def set_func(self): | |||
self.func = paddle.jit.to_static(full_graph=True)(test_not_var_cast) | |||
|
|||
@test_ast_only | |||
@test_legacy_and_pir | |||
@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.
这两行注释删掉吧
@@ -126,53 +126,54 @@ def train(conf_dict, to_static): | |||
train process | |||
""" | |||
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
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 <[email protected]>
PR types
Others
PR changes
Others
Description
test_mobile_net
TestMobileNet
需要适配jit.api.save
方法AttributeError: 'list' object has no attribute 'type'
test_resnet_amp
NotImplementedError: not implement error.
test_resnet_amp
paddle.Tensor.backward
api 报错, 看样子是 c++ 的检查PreconditionNotMetError: The meta data must be valid when call the mutable data function
test_resnet_v2
test_in_static_mode_mkldnn
在我本地跑不了, 不过应该也是挂的test_simnet
PartialProgramLayer._append_backward_desc
Type validation failed for the 0th output.
test_to_tensor
:TestStatic.test_static
paddle.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_badreturn
F1114 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
复现报错信息:
相关链接: