Pytroch中'Tensor' object is not callable问题分析

1. 报错:'Tensor' object is not callable

2. 解决:https://blog.csdn.net/york1996/article/details/84037641

               https://blog.csdn.net/suyulan123456/article/details/84589436?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-3.control&dist_request_id=1328740.38064.16169862543041725&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-3.control

 

我的:定义的loss函数和loss.backward()重名,导致报错。

 

posted @ 2021-03-29 14:56  vv_869  阅读(2762)  评论(0编辑  收藏  举报