You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if self.n_attrs:
batch_size, c, w, h = x.shape
expanded_attrs = attrs.view(
*attrs.shape, 1, 1).expand(*attrs.shape, w, h)
x = torch.cat((x, expanded_attrs), dim=1)
x = torch.cat((x, expanded_attrs), dim=1)
RuntimeError: Tensors must have same number of dimensions: got 4 and 6
Hello, when I run this program (VAEGAN), these sentences of code will have problems. The original data is 4-dimensional, and the torch cannot be executed after dimension upgrading or expansion torch.cat operation
The text was updated successfully, but these errors were encountered:
x = torch.cat((x, expanded_attrs), dim=1)
RuntimeError: Tensors must have same number of dimensions: got 4 and 6
Hello, when I run this program (VAEGAN), these sentences of code will have problems. The original data is 4-dimensional, and the torch cannot be executed after dimension upgrading or expansion torch.cat operation
The text was updated successfully, but these errors were encountered: