I have a two matrix, F(shape = (4000, 64)) and M(shape=(4000,9)) and want to have result that have shape = (4000,64*9)
i can think with for loop with below code(ideal)
result = np.zeros(4000,64*9)
ind = 0
for i in range(64):
for j in range(9):
result[:,ind]= tf.muliply(F[:,i]),M[:,j])
ind += 1
but i know For Loop is not support in tensorflow
Is there a function that performs the same function as above code?
edit)
I came up with an idea. F,M repeat to shape (4000,64*9) [liek repmat in MATLAB] and elementwise multiply. Could you ever have any other ideas?