[Tensor contraction](https://www.tensorflow.org/api_docs/python/tf/tensordot) of a and b along specified axes and outer product.