Hi,
I found this error when I backprop the loss
image1369×426 32.9 KB
I suppose it indicates that ones needs to be contiguous, I have modified my codes into these:
self.sigma = nn.Parameter(np.log(init_length_scale) *torch.ones(self.in_channels), requires_grad=True).contiguous()
density = torch.ones(batch_size, n_in, 1).to(self.device).contiguous()
Still they didn’t work. Could somebody please tell me if I have put contiguous() at the wrong places? or I misunderstand the debug info. How should I locate such problems btw?
Many thanks in advance