Probably you would like to use a matrix multiplication to get a [1, 1] tensor:
torch.matmul(w, c)

torch,mul multiplies each element of the first tensor with each element of the second using broadcasting if necessary.