-
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
[PIR AMP]Split tracer and amp attr #61297
Conversation
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.
Great work !
std::string GetAmpDtype() const; | ||
void SetAmpDtype(std::string amp_dtype); | ||
phi::DataType GetAmpPhiDtype() const; | ||
// void Reset(); |
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.
好的,下个PR删掉,感谢~
PR types
Others
PR changes
Others
Description
Pcard-67164
本PR是PIR下支持AMP训练的第一个PR,主要完成tracer和AMP训练相关属性的解绑工作,具体来说:
NOTE:
PR中将tracer中的use_promote_、amp_level_、amp_dtype_属性放到了AMPState,但是在tracer中依然保留了GetUsePromote、SetAmpLevel、GetAmpDtype等相关的接口,本PR修改之后tracer的这些接口内部会调用AMPState对应的接口。为什么没有删除tracer的相关接口?不管是python端还是cpp端还有调用tracer这些相关的接口,这里没有删除只是为了加快PIR AMP功能开发进度,这里作为一个TODO项后面会单独提一个PR或者协调外部开发者来完成这部分清理清理工作。需要清理的相关接口包括但不限于:
对于AmpOperators也是同理,比较好的状态应该是将AmpOperators和AMPState合并,后面也会单独提PR处理