-
Notifications
You must be signed in to change notification settings - Fork 36
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
nn.Graph Tutorial of AMP #448
Comments
GradScaler还没导出API amp_white_identity还没导出API |
amp_white_identity 这个解释确实困难,感觉得把那个染色算法解释了,才好说清楚这个 op 的含义。 |
明天能达到的标准,我们约定为How-To:
达到的效果:给我们自己的算法同事一个最基本的教程,他们可以参考把功能启动起来;而不是接口使用都要口口相传; |
想确认下这里说的“还没导出”指的是目前还不能从 onflow 访问到吗?nightly 版的 OneFlow 使用它会直接报 AttributeError |
可以使用。不过没有加API Doc。我过会儿加下,在tutorial中不用管。
不是,默认可以不用加,amp_white_identity什么时候该使用比较隐晦,先不提这个api算了。 |
@strint XiaoYu哥我想请教确认下, of 与 pytorch 有类似的 GradScaler,但是在使用 of 的 GradScaler 的时候,是只需要在 nn.Graph 中通过 |
是的。这个也是 nn.Graph 中在图里面自动调度的。 |
AMP背景资料:
OneFlow AMP
打开AMP
全局开关 + 显示标记一定可以做fp16的tensor
关闭AMP
待讨论
GradScale
和torch接口对齐的GradScaler
关联接口:
The text was updated successfully, but these errors were encountered: