Tell Pytorch's Autograd not to include a operation for gradient computation

前端 未结 0 1964
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 01:57

I have a custom layer. Let the layer be called \'Gaussian\'

class Gaussian(nn.Module):
    ....
    def forward(self, x):
        x = x ** 2
        # Few oth         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题