Pytorch1.7报错 Output 0 of UnbindBackward is a view and is being modified inplace


utils里内容改成

        if scale_each is True:
            for idx, _ in enumerate([jj for jj in tensor]):
                t = tensor[idx]
            # for t in tensor:  # loop over mini-batch dimension
            #     norm_range(t, range)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM