I have a tensor variable x, that may come in sizes (,), (n,), (1, n) or (m,n).
Independently of the particular case, I would like to explicitly broadcast x to be two-dimensional.
In other words, is there a single call like y = x.broadcast_to_dim(2) that will do nothing if x has size (1,n) or (m,n), and will insert an axis on the left if x has size (n,) and two axes on the left if x has size (,), making x of size (1,n) in both cases?