The current implementation only accounts for the two-dimensional case. When both tensors are one-dimensional, a tensor of Rank(0) should be returned.