I have two Tensors X and Z of shape (100,) and I would like to create a Tensor X x Z which would result in a shape of (100, 100).
And for each pair element within this matrix I'd like to apply some function that I have already defined, i.e. fn(x,z) for each possible combination in the matrix.
I am new to TensorFlow and I'm used to thinking sequentially, with two for loops over each vector when dealing with numpy arrays.
How can I do this in TensorFlow? Many thanks.