row.append(i)
col.append(j)
p = tf.concat([embeds_vec_list[idx] for idx in row],axis=1)
q = tf.concat([embeds_vec_list[idx] for idx in col],axis=1)
inner_product = p * q
bi_interaction = inner_product
After Change
// for j in range(i + 1, num_inputs):
// row.append(i)
// col.append(j)
for r, c in itertools.combinations(embeds_vec_list, 2):
row.append(r)
col.append(c)
//p = tf.concat([embeds_vec_list[idx] for idx in row],axis=1)