在搭建简单的神经网络模型中运行代码报错
bool value of Tensor with more than one value is ambiguous
意思是:具有多个值的张量的布尔值是模糊的
再检查代码后发现,定义损失函数时没有加()
bool value of Tensor with more than one value is ambiguous
最新推荐文章于 2025-03-08 09:00:00 发布
在搭建简单的神经网络模型中运行代码报错
bool value of Tensor with more than one value is ambiguous
意思是:具有多个值的张量的布尔值是模糊的
再检查代码后发现,定义损失函数时没有加()