dongdongjia

2022年10月14日 #

Encounter the RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation

摘要: Encounter the RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation 这句话含义是:梯度计算所需的变量之一在后向传播时已被操 阅读全文

posted @ 2022-10-14 15:45 咚咚咚咚嘉 阅读(43) 评论(0) 推荐(0) 编辑

2022年10月10日 #

torch.meshgrid 和 numpy.meshgrid的区别

摘要: torch.meshgrid 和 numpy.meshgrid的输出方向不同。 ###输入 import torch import numpy as np x = torch.arange(3) y = torch.arange(10,14) print(torch.meshgrid([x,y])) 阅读全文

posted @ 2022-10-10 23:13 咚咚咚咚嘉 阅读(89) 评论(0) 推荐(0) 编辑

导航