Torch.cat() different variable issue?

I am contenanting three fetures who have same no of rows,

A=torch.cat(chroma_feats.T,mel_feats.T,mfcc_feats.T)

getting an error

cat() received an invalid combination of arguments - got (numpy.ndarray, numpy.ndarray, numpy.ndarray), but expected one of:

  • (tuple of Tensors tensors, name dim, *, Tensor out)
  • (tuple of Tensors tensors, int dim, *, Tensor out)

what to do?

You need to provide a tuple of tensors instead of just 3 tensors :
tuple = (tensor_1, tensor_2)
new_tensor = torch.cat(tuple)