I would like to have my code used the named dimensions unless no dimensions exists, but I’m not sure how I would determine this.
Example:
x1 = torch.ones(1,3,4,4)
x2 = torch.ones(1,3,4,4).refine_names("D0", "D1", "D2", "D3")

x1 = #No named dims
x2 = # Has named dims