You’ve described the shape of the dimension which should be concatenated, but I’m still unsure how the shape of tabular_data_input can be understood. Based on the error message it has 4 dimensions, which doesn’t fit your description of “12 columns” and I guess you are referring to the shape of dim1 which should be concatenated with x.
Check the shape of both tensors and try to narrow down why one tensor has 2 and the other 4 dimensions.