numpy inner product and value error

I have problem with inner product of two vector. I define subtract and distance in these shape:

subtract = np.zeros((3,1), dtype=int)
distance = np.zeros((7,))

then when I want to do this operation:

subtract =  np.subtract(pix[i,j],cluster[k])
distance[k] = np.inner(subtract,np.transpose(subtract))

I get this error:

distance[k] = np.inner(subtract,np.transpose(subtract))
ValueError: shapes (1,3) and (1,3) not aligned: 3 (dim 1) != 1 (dim 0)

there is no problem with subtract I can print it and its transpose.