There is the following issue on this page: https://docs.pytorch.org/docs/stable/notes/broadcasting.html#broadcasting-semantics >>> x=torch.empty((0,)) >>> y=torch ...