No broadcasting for tf.matmul in TensorFlow
I have a problem with which I've been struggling. It is related to tf.matmul() and its absence of broadcasting. I am aware of a similar issue on https://github.com/tensorflow/tensorflow/issues/216 , but tf.batch_matmul() doesn't look like a solution for my case. I need to encode my input data as a 4D tensor: X = tf.placeholder(tf.float32, shape=(None, None, None, 100)) The first dimension is the size of a batch, the second the number of entries in the batch. You can imagine each entry as a composition of a number of objects (third dimension). Finally, each object is described by a vector of