-
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 13 #59517
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
if not use_pir_api(): | ||
with paddle.static.default_main_program()._lr_schedule_guard( | ||
is_with_opt=True | ||
), framework.name_scope( | ||
'scale_with_param_lr' | ||
): | ||
return self._global_learning_rate() * param_lr | ||
else: | ||
# TODO(dev): Currently there has not equivalent of op_role in PIR | ||
# mode, so we simply remove _lr_schedule_guard here, this should | ||
# be fixed in the future. | ||
with framework.name_scope('scale_with_param_lr'): | ||
return self._global_learning_rate() * param_lr |
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.
按理说放在 Program._lr_schedule_guard
,但现在 Python 端没相关的 patch,暂时直接这样写了
PR types
Others
PR changes
Others
Description
test_spec_names
test_convert_call_generator
test_slice
: {TestSetValueWithLayerAndSave
,TestSetValue
}OpResult.__setitem__
test_slice
: {TestSliceInIf
,TestSliceInWhileLoop
,TestSliceInForLoop
}test_full_name_usage
FLAGS_enable_pir_api=true
切一下Destoryed a op_result that is still in use.
test_tsm
需要适配paddle.base.libpaddle.pir.Program._lr_schedule_guard
,报错api是paddle.optimizer.Optimizer._create_param_lr
的param_lr > 1.0
部分,依赖 #59597test_tsm
相关链接: