Based on the error it seems that x has 2 dimensions, while tabular_data_input has 4.
torch.cat expects both tensors to have the same number of dimensions and will concatenate these tensors in the specified dimension. The other dimensions should also have the same shape.
Could you explain what the dimensions of tabular_data_inputs represent and how these tensors should be concatenated?