Khadijeh_Arabi:

because the size of sample is 2048x20 but cond_dim has no dimension


I’m not sure how the concatenation or stacking would work in this case.
Could you explain how the single value should be concatenated to the tensor of [2048, 20]?
The second error is raised due to a shape mismatch in a linear layer, so check the feature dimension in the input activation and make sure it matches the in_features of the linear layer.