您好,欢迎来到五一七教育网。
搜索
您的当前位置:首页pytorch利用DDP进行加速的报错问题

pytorch利用DDP进行加速的报错问题

来源:五一七教育网

pytorch利用DDP加速时,出现提示信息为:
[W reducer.cpp:362] Warning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed.  This is not an error, but may impair performance.

例如:

# 原代码为:
input_tensor = ori_tensor.transpose(1, 3)

# 改为:
input_tensor = ori_tensor.transpose(1, 3).contiguous()

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 517ttc.cn 版权所有 赣ICP备2024042791号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务